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 c735e48..164a73a 100644
--- a/ui/editor.go
+++ b/ui/editor.go
@@ -100,7 +100,7 @@ func (e *editor) Right() {
return
}
e.cursorIdx++
- if e.width < e.textWidth[e.cursorIdx]-e.textWidth[e.offsetIdx] {
+ if e.width <= e.textWidth[e.cursorIdx]-e.textWidth[e.offsetIdx] {
e.offsetIdx += 16
max := len(e.text) - 1
if max < e.offsetIdx {