about summary refs log tree commit diff stats
path: root/src/local
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2024-05-12 12:41:10 +0200
committerbptato <nincsnevem662@gmail.com>2024-05-12 12:41:10 +0200
commit911ec9a85fc7b773fcea4b005d926702020a551f (patch)
tree0695ec64a4dcfaf3cec8d24f94c7ca596285a394 /src/local
parent3505948b2584b36d8672bf309e210e37fce7f81a (diff)
downloadchawan-911ec9a85fc7b773fcea4b005d926702020a551f.tar.gz
container: remove unused code
Diffstat (limited to 'src/local')
-rw-r--r--src/local/container.nim5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/local/container.nim b/src/local/container.nim
index 5b593f2a..75eba41b 100644
--- a/src/local/container.nim
+++ b/src/local/container.nim
@@ -556,11 +556,6 @@ proc setCursorX(container: Container; x: int; refresh = true; save = true)
     # accordingly
     container.setFromX(max(x - container.width + 1, container.fromx), false)
     container.pos.cursorx = x
-  elif x < container.cursorx:
-    # target x is lower than current x, but is outside the screen
-    #TODO I have no clue if/when this is used :(
-    container.setFromX(x, false)
-    container.pos.cursorx = x
   if container.cursorx == x and container.currentSelection != nil and
       container.currentSelection.x2 != x:
     container.currentSelection.x2 = x