about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-06-24 16:39:27 -0700
committerKartik K. Agaram <vc@akkartik.com>2015-06-24 16:39:27 -0700
commitb56e0447c6a56c0708ba17f7ae1efe1cdbae8ed5 (patch)
tree3e200012e1ed1537e8ac06ebd25811b0c957750e
parenta2a2bb4e36f1174572e3e2a5bcf5158e9c560a96 (diff)
downloadmu-b56e0447c6a56c0708ba17f7ae1efe1cdbae8ed5.tar.gz
1637
-rw-r--r--edit.mu4
1 files changed, 3 insertions, 1 deletions
diff --git a/edit.mu b/edit.mu
index 20dd44bb..5488cef4 100644
--- a/edit.mu
+++ b/edit.mu
@@ -296,7 +296,9 @@ recipe move-cursor-in-editor [
   row:address:number/deref <- get t:touch-event, row:offset
   column:address:number <- get-address editor:address:editor-data/deref, cursor-column:offset
   column:address:number/deref <- get t:touch-event, column:offset
-  # todo: adjust 'cursor' pointer into editor data
+  # clear cursor pointer; will be set correctly during render
+  cursor:address:address:duplex-list <- get-address editor:address:editor-data/deref, cursor:offset
+  cursor:address:address:duplex-list/deref <- copy 0:literal
 ]
 
 scenario editor-handles-empty-event-queue [