diff options
author | bptato <nincsnevem662@gmail.com> | 2023-01-20 16:29:06 +0100 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2023-01-20 16:29:06 +0100 |
commit | eaab3a1a6e6c61e1949b0d58385b866ddf6ccad6 (patch) | |
tree | 570b6daec013f170ea1a5a5baa0d412402a7f823 /src/buffer | |
parent | fb0917b00b3e989f0a88164a5644c3c50a978f49 (diff) | |
download | chawan-eaab3a1a6e6c61e1949b0d58385b866ddf6ccad6.tar.gz |
buffer: do not move cursor in scrollLeft
Diffstat (limited to 'src/buffer')
-rw-r--r-- | src/buffer/container.nim | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/buffer/container.nim b/src/buffer/container.nim index 38b58011..8962908a 100644 --- a/src/buffer/container.nim +++ b/src/buffer/container.nim @@ -555,8 +555,6 @@ proc scrollRight(container: Container) {.jsfunc.} = proc scrollLeft(container: Container) {.jsfunc.} = if container.fromx > 0: container.setFromX(container.fromx - 1) - if container.cursorx < container.fromx: - container.setCursorX(container.currentLineWidth() - 1) proc alert(container: Container, msg: string) = container.triggerEvent(ContainerEvent(t: ALERT, msg: msg)) |