about summary refs log tree commit diff stats
path: root/src/buffer
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2022-12-25 21:02:02 +0100
committerbptato <nincsnevem662@gmail.com>2022-12-25 21:02:02 +0100
commit37d08803de305a92ce208d1eddd594d12afd047a (patch)
treee0d58834b01796311c6af1d1da1d75eb91162c71 /src/buffer
parent35c5fb0eca71b4a78d013dfe469d78a4a4136c41 (diff)
downloadchawan-37d08803de305a92ce208d1eddd594d12afd047a.tar.gz
container: fix requestLines not setting setx
Diffstat (limited to 'src/buffer')
-rw-r--r--src/buffer/container.nim1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/buffer/container.nim b/src/buffer/container.nim
index e6a65550..065177a7 100644
--- a/src/buffer/container.nim
+++ b/src/buffer/container.nim
@@ -285,6 +285,7 @@ proc requestLines*(container: Container, w = container.lineWindow): auto {.disca
     for y in 0 ..< min(res.lines.len, w.len):
       container.lines[y] = res.lines[y]
       container.lines[y].str.mnormalize()
+    container.updateCursor()
     if res.numLines != container.numLines:
       container.setNumLines(res.numLines, true)
     let cw = container.fromy ..< container.fromy + container.height