summaryrefslogtreecommitdiff
path: root/ui/editor.go
diff options
context:
space:
mode:
Diffstat (limited to 'ui/editor.go')
-rw-r--r--ui/editor.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/editor.go b/ui/editor.go
index 66f230f..33cf736 100644
--- a/ui/editor.go
+++ b/ui/editor.go
@@ -95,7 +95,7 @@ func (e *editor) RemRune() (ok bool) {
}
func (e *editor) RemRuneForward() (ok bool) {
- ok = e.cursorIdx < len(e.text)
+ ok = e.cursorIdx < len(e.text[e.lineIdx])
if !ok {
return
}