about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-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))