about summary refs log tree commit diff stats
path: root/source.lua
diff options
context:
space:
mode:
Diffstat (limited to 'source.lua')
-rw-r--r--source.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/source.lua b/source.lua
index 0e1d478..f0022be 100644
--- a/source.lua
+++ b/source.lua
@@ -285,14 +285,14 @@ function source.settings()
   }
 end
 
-function source.mouse_pressed(x,y, mouse_button)
+function source.mouse_press(x,y, mouse_button)
   Cursor_time = 0  -- ensure cursor is visible immediately after it moves
 --?   print('mouse click', x, y)
 --?   print(Editor_state.left, Editor_state.right)
 --?   print(Log_browser_state.left, Log_browser_state.right)
   if Show_file_navigator and y < Menu_status_bar_height + File_navigation.num_lines * Editor_state.line_height then
     -- send click to buttons
-    edit.mouse_pressed(Editor_state, x,y, mouse_button)
+    edit.mouse_press(Editor_state, x,y, mouse_button)
     return
   end
   if x < Editor_state.right + Margin_right then
@@ -301,14 +301,14 @@ function source.mouse_pressed(x,y, mouse_button)
       Focus = 'edit'
       return
     end
-    edit.mouse_pressed(Editor_state, x,y, mouse_button)
+    edit.mouse_press(Editor_state, x,y, mouse_button)
   elseif Show_log_browser_side and Log_browser_state.left <= x and x < Log_browser_state.right then
 --?     print('click on log_browser side')
     if Focus ~= 'log_browser' then
       Focus = 'log_browser'
       return
     end
-    log_browser.mouse_pressed(Log_browser_state, x,y, mouse_button)
+    log_browser.mouse_press(Log_browser_state, x,y, mouse_button)
     for _,line_cache in ipairs(Editor_state.line_cache) do line_cache.starty = nil end  -- just in case we scroll
   end
 end