aboutsummaryrefslogtreecommitdiff
path: root/modules/textadept/keys.lua
diff options
context:
space:
mode:
Diffstat (limited to 'modules/textadept/keys.lua')
-rw-r--r--modules/textadept/keys.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/textadept/keys.lua b/modules/textadept/keys.lua
index ddd237af..b4da1271 100644
--- a/modules/textadept/keys.lua
+++ b/modules/textadept/keys.lua
@@ -32,10 +32,10 @@ local function toggle_setting(setting, i)
elseif type(state) == 'number' then
buffer[setting] = buffer[setting] == 0 and (i or 1) or 0
end
- events.emit('update_ui') -- for updating statusbar
+ events.emit(events.UPDATE_UI) -- for updating statusbar
end
local RECENT_FILES = _SCINTILLA.next_user_list_type()
-events.connect('user_list_selection',
+events.connect(events.USER_LIST_SELECTION,
function(type, text) if type == RECENT_FILES then io.open_file(text) end end)
local function show_recent_file_list()
local buffer = buffer