diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2023-09-15 23:59:12 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2023-09-15 23:59:12 -0700 |
commit | f0436579c03922006a6d3ff3f24b3eb8845aed9f (patch) | |
tree | c620d66e23660783738e3fae6cea244966495a04 /edit.lua | |
parent | 6e429d3e4d5f11a43084e38eb605ff7efc9ea4f8 (diff) | |
parent | 09c76c82c2a415839ad0d50d9fc14e883caeae6e (diff) | |
download | view.love-f0436579c03922006a6d3ff3f24b3eb8845aed9f.tar.gz |
Merge text.love
Diffstat (limited to 'edit.lua')
-rw-r--r-- | edit.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/edit.lua b/edit.lua index a0145a0..1ea5e5a 100644 --- a/edit.lua +++ b/edit.lua @@ -212,11 +212,13 @@ 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 |