From 1e70e08996a7d938f68317f0558fd9c4ed1a555e Mon Sep 17 00:00:00 2001 From: BDisp Date: Sun, 18 Sep 2022 00:37:59 +0100 Subject: [PATCH] Contents must return the current value, no matter what value is. --- Terminal.Gui/Core/Clipboard/Clipboard.cs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/Terminal.Gui/Core/Clipboard/Clipboard.cs b/Terminal.Gui/Core/Clipboard/Clipboard.cs index 910470a86..914dd0153 100644 --- a/Terminal.Gui/Core/Clipboard/Clipboard.cs +++ b/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; }