2
0
Sang Kil Cha 6 жил өмнө
parent
commit
c9d7df13fd

+ 3 - 1
Terminal.Gui/Views/TextField.cs

@@ -268,8 +268,10 @@ namespace Terminal.Gui {
 				break;
 
 			case Key.ControlY: // Control-y, yank
+				if (Clipboard.Contents == null)
+					return true;
 				var clip = TextModel.ToRunes (Clipboard.Contents);
-				if (clip== null)
+				if (clip == null)
 					return true;
 
 				if (point == text.Count) {