aboutsummaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-rw-r--r--core/events.lua2
-rw-r--r--core/ui.lua2
2 files changed, 2 insertions, 2 deletions
diff --git a/core/events.lua b/core/events.lua
index 768f41e0..d83c7803 100644
--- a/core/events.lua
+++ b/core/events.lua
@@ -246,10 +246,10 @@ local M = {}
-- Note that Textadept always displays a context menu on right-click.
-- Arguments:
--
+-- * _`index`_: The numeric index of the clicked tab.
-- * _`button`_: The mouse button number that was clicked, either `1` (left
-- button), `2` (middle button), `3` (right button), `4` (wheel up), or `5`
-- (wheel down).
--- * _`index`_: The numeric index of the clicked tab.
-- * _`shift`_: The "Shift" modifier key is held down.
-- * _`ctrl`_: The "Control" modifier key is held down.
-- * _`alt`_: The "Alt"/"Option" modifier key is held down.
diff --git a/core/ui.lua b/core/ui.lua
index b0cce5d7..aa3e29e0 100644
--- a/core/ui.lua
+++ b/core/ui.lua
@@ -278,7 +278,7 @@ events_connect(events.VIEW_NEW, function() events.emit(events.UPDATE_UI) end)
-- Switches between buffers when a tab is clicked.
events_connect(events.TAB_CLICKED,
- function(button, index) view:goto_buffer(_BUFFERS[index]) end)
+ function(index, button) view:goto_buffer(_BUFFERS[index]) end)
-- Sets the title of the Textadept window to the buffer's filename.
local function set_title()