Contents must return the current value, no matter what value is.

This commit is contained in:
BDisp
2022-09-18 00:37:59 +01:00
parent c350886b5d
commit 1e70e08996

View File

@@ -15,11 +15,7 @@ namespace Terminal.Gui {
get {
try {
if (IsSupported) {
var clip = ustring.Make (Application.Driver.Clipboard.GetClipboardData ());
if (clip != null) {
return contents = clip;
}
return clip;
return contents = ustring.Make (Application.Driver.Clipboard.GetClipboardData ());
} else {
return contents;
}