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:08:40 -0700
committerKartik K. Agaram <vc@akkartik.com>2023-09-16 00:08:40 -0700
commite59995b83c1ebb022787bdf3eb4ee46e1e275dc9 (patch)
treed68a1335b2bb70ed0c4e95e85959b40ab0f4d5c0 /edit.lua
parentf0436579c03922006a6d3ff3f24b3eb8845aed9f (diff)
parente1168f4eff674c2571746aefcc438ed77d5e2941 (diff)
downloadview.love-e59995b83c1ebb022787bdf3eb4ee46e1e275dc9.tar.gz
Merge text.love
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 1ea5e5a..a0145a0 100644
--- a/edit.lua
+++ b/edit.lua
@@ -212,13 +212,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