diff options
Diffstat (limited to 'virtual-programs')
| -rw-r--r-- | virtual-programs/editor.folk | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/virtual-programs/editor.folk b/virtual-programs/editor.folk index d1616d65..65d1df2c 100644 --- a/virtual-programs/editor.folk +++ b/virtual-programs/editor.folk @@ -248,8 +248,11 @@ When /page/ is a keyboard with path /kbPath/ { } RIGHT { set currentLineLength [getCurrentLineLength $code $cursor] - # TODO: Check if the cursor is at the end of the line, if so cap it - Claim the $kbPath cursor is [updateCursor $cursor {x 1}] + if {[lindex $cursor 0] == $currentLineLength} { + Claim the $kbPath cursor is $cursor + } else { + Claim the $kbPath cursor is [updateCursor $cursor {x 1}] + } } LEFT { Claim the $kbPath cursor is [updateCursor $cursor {x -1}] } BACKSPACE { |
