EditTextView.st
changeset 6295 408d5ea999ac
parent 6289 110928952dac
child 6301 c34a59206e44
--- a/EditTextView.st	Thu Mar 15 12:33:43 2018 +0100
+++ b/EditTextView.st	Thu Mar 15 12:33:59 2018 +0100
@@ -1465,6 +1465,17 @@
     ^ cursorLine
 !
 
+cursorLineAndColumnHolder
+    "return a valueHolder for the cursors line and column as an
+     array of the form { lineNr . col }
+     This can be used directly as a model to react on cursor movement"
+
+    ^ BlockValue
+        with:[:l :c | (Array with:l with:c) ]
+        argument:self cursorLineHolder
+        argument:self cursorColHolder
+!
+
 cursorLineAndColumnLabelHolder
     "return a valueHolder for the cursors line and column as an info string
      of the form 'line : col'.