#UI_ENHANCEMENT by cg
authorClaus Gittinger <cg@exept.de>
Wed, 07 Mar 2018 15:47:48 +0100
changeset 5716 aa0c8adb8c29
parent 5715 7af87f717f65
child 5717 30b609979318
#UI_ENHANCEMENT by cg class: TerminalView changed: #copySelection cursor behavior when copying
TerminalView.st
--- a/TerminalView.st	Tue Mar 06 19:41:48 2018 +0100
+++ b/TerminalView.st	Wed Mar 07 15:47:48 2018 +0100
@@ -2848,8 +2848,18 @@
 !
 
 copySelection
+    "the inherited code would leave the cursor behin the selection;
+     we always want it to stay at the end.
+     However: cursorToEndOfText ignores trailing spaces!!
+    "
+
+    |cLine cCol|
+
+    cLine := cursorLine.
+    cCol := cursorCol.
     super copySelection.
-    self cursorToEndOfText
+    "/ self cursorToEndOfText
+    self cursorLine:cLine col:cCol.
 !
 
 paste:someText