aboutsummaryrefslogtreecommitdiffhomepage
path: root/core/ui.lua
diff options
context:
space:
mode:
authorGravatar mitchell <70453897+667e-11@users.noreply.github.com>2019-11-07 12:44:46 -0500
committerGravatar mitchell <70453897+667e-11@users.noreply.github.com>2019-11-07 12:44:46 -0500
commitd62646466f616b992029c92a3f6dd1ebac61d116 (patch)
treeabb89200cb752b868f2f2a031c1b73c9382f9519 /core/ui.lua
parent04d8fc19704896bf86e550db023d7c04a8d4442e (diff)
Changed `events.TAB_CLICKED` to emit button clicked as well as modifier keys.
This allows users to close buffers on middle-click for example.
Diffstat (limited to 'core/ui.lua')
-rw-r--r--core/ui.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/ui.lua b/core/ui.lua
index ae01d69f..b0cce5d7 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(index) view:goto_buffer(_BUFFERS[index]) end)
+ function(button, index) view:goto_buffer(_BUFFERS[index]) end)
-- Sets the title of the Textadept window to the buffer's filename.
local function set_title()