diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2023-09-16 00:07:07 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2023-09-16 00:07:07 -0700 |
commit | e1168f4eff674c2571746aefcc438ed77d5e2941 (patch) | |
tree | 8b1a2449b1e5546f45adc32dce38b4c45b03970b | |
parent | 09c76c82c2a415839ad0d50d9fc14e883caeae6e (diff) | |
download | text.love-e1168f4eff674c2571746aefcc438ed77d5e2941.tar.gz |
fix a bad merge
-rw-r--r-- | edit.lua | 2 |
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 |