diff options
author | 2019-11-13 20:54:52 -0500 | |
---|---|---|
committer | 2019-11-13 20:54:52 -0500 | |
commit | 51d40f28fcffc683919f8ff6e376d4820eef2cbf (patch) | |
tree | efcec235bb913e510eeb491c48b1765dc0368052 /core/ui.lua | |
parent | ee9e8700ae84aa246ec01422aef83b673b5b1cf7 (diff) | |
download | textadept-51d40f28fcffc683919f8ff6e376d4820eef2cbf.tar.gz textadept-51d40f28fcffc683919f8ff6e376d4820eef2cbf.zip |
Make new arguments to `events.TAB_CLICKED` backwards-compatible.
Diffstat (limited to 'core/ui.lua')
-rw-r--r-- | core/ui.lua | 2 |
1 files changed, 1 insertions, 1 deletions
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() |