diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2023-09-16 00:08:40 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2023-09-16 00:08:40 -0700 |
commit | e59995b83c1ebb022787bdf3eb4ee46e1e275dc9 (patch) | |
tree | d68a1335b2bb70ed0c4e95e85959b40ab0f4d5c0 | |
parent | f0436579c03922006a6d3ff3f24b3eb8845aed9f (diff) | |
parent | e1168f4eff674c2571746aefcc438ed77d5e2941 (diff) | |
download | view.love-e59995b83c1ebb022787bdf3eb4ee46e1e275dc9.tar.gz |
Merge text.love
-rw-r--r-- | edit.lua | 2 |
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 |