about summary refs log tree commit diff stats
path: root/edit.lua
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2023-09-16 00:07:07 -0700
committerKartik K. Agaram <vc@akkartik.com>2023-09-16 00:07:07 -0700
commite1168f4eff674c2571746aefcc438ed77d5e2941 (patch)
tree8b1a2449b1e5546f45adc32dce38b4c45b03970b /edit.lua
parent09c76c82c2a415839ad0d50d9fc14e883caeae6e (diff)
downloadview.love-e1168f4eff674c2571746aefcc438ed77d5e2941.tar.gz
fix a bad merge
Diffstat (limited to 'edit.lua')
-rw-r--r--edit.lua2
1 files changed, 0 insertions, 2 deletions
diff --git a/edit.lua b/edit.lua
index 3819d06..446d76d 100644
--- a/edit.lua
+++ b/edit.lua
@@ -233,13 +233,11 @@ end
 function edit.mouse_wheel_move(State, dx,dy)
   if dy > 0 then
     State.cursor1 = {line=State.screen_top1.line, pos=State.screen_top1.pos}
-    edit.put_cursor_on_next_text_line(State)
     for i=1,math.floor(dy) do
       Text.up(State)
     end
   elseif dy < 0 then
     State.cursor1 = {line=State.screen_bottom1.line, pos=State.screen_bottom1.pos}
-    edit.put_cursor_on_next_text_line(State)
     for i=1,math.floor(-dy) do
       Text.down(State)
     end