aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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