about summary refs log tree commit diff stats
path: root/src/buffer
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2023-01-20 16:29:06 +0100
committerbptato <nincsnevem662@gmail.com>2023-01-20 16:29:06 +0100
commiteaab3a1a6e6c61e1949b0d58385b866ddf6ccad6 (patch)
tree570b6daec013f170ea1a5a5baa0d412402a7f823 /src/buffer
parentfb0917b00b3e989f0a88164a5644c3c50a978f49 (diff)
downloadchawan-eaab3a1a6e6c61e1949b0d58385b866ddf6ccad6.tar.gz
buffer: do not move cursor in scrollLeft
Diffstat (limited to 'src/buffer')
-rw-r--r--src/buffer/container.nim2
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))