diff options
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 bfd2709..8a7cd10 100644 --- a/edit.lua +++ b/edit.lua @@ -151,6 +151,7 @@ end function edit.mouse_press(State, x,y, mouse_button) if State.search_term then return end + State.mouse_down = mouse_button --? print_and_log(('edit.mouse_press: cursor at %d,%d'):format(State.cursor1.line, State.cursor1.pos)) if y < State.top then State.old_cursor1 = State.cursor1 @@ -199,6 +200,7 @@ end function edit.mouse_release(State, x,y, mouse_button) if State.search_term then return end --? print_and_log(('edit.mouse_release(%d,%d): cursor at %d,%d'):format(x,y, State.cursor1.line, State.cursor1.pos)) + State.mouse_down = nil if y < State.top then State.cursor1 = {line=State.screen_top1.line, pos=State.screen_top1.pos} edit.clean_up_mouse_press(State) |