Browse Source

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

BDisp 2 years ago
parent
commit
1e70e08996
1 changed files with 1 additions and 5 deletions
  1. 1 5
      Terminal.Gui/Core/Clipboard/Clipboard.cs

+ 1 - 5
Terminal.Gui/Core/Clipboard/Clipboard.cs

@@ -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;
 					}