about summary refs log tree commit diff stats
path: root/edit.lua
diff options
context:
space:
mode:
Diffstat (limited to 'edit.lua')
-rw-r--r--edit.lua4
1 files changed, 0 insertions, 4 deletions
diff --git a/edit.lua b/edit.lua
index 82d9542..3e92a54 100644
--- a/edit.lua
+++ b/edit.lua
@@ -75,8 +75,6 @@ function edit.initialize_state(top, left, right, font_height, line_height)  -- c
     old_cursor1 = nil,
     old_selection1 = nil,
     mousepress_shift = nil,
-    -- when selecting text, avoid recomputing some state on every single frame
-    recent_mouse = {},
 
     -- cursor coordinates in pixels
     cursor_x = 0,
@@ -249,7 +247,6 @@ function edit.mouse_press(State, x,y, mouse_button)
             line=line_index,
             pos=Text.to_pos_on_line(State, line_index, x, y),
         }
-        State.recent_mouse = {time=Current_time, line=State.selection1.line, pos=State.selection1.pos}
         break
       end
     elseif line.mode == 'drawing' then
@@ -286,7 +283,6 @@ function edit.mouse_release(State, x,y, mouse_button)
               pos=Text.to_pos_on_line(State, line_index, x, y),
           }
           print_and_log(('edit.mouse_release: cursor now %d,%d'):format(State.cursor1.line, State.cursor1.pos))
-          State.recent_mouse = {time=Current_time, line=State.cursor1.line, pos=State.cursor1.pos}
           if State.mousepress_shift then
             if State.old_selection1.line == nil then
               State.selection1 = State.old_cursor1