aboutsummaryrefslogtreecommitdiff
path: root/modules/textadept/command_entry.lua
diff options
context:
space:
mode:
Diffstat (limited to 'modules/textadept/command_entry.lua')
-rw-r--r--modules/textadept/command_entry.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/textadept/command_entry.lua b/modules/textadept/command_entry.lua
index 5df63a25..f69a5644 100644
--- a/modules/textadept/command_entry.lua
+++ b/modules/textadept/command_entry.lua
@@ -181,13 +181,13 @@ function M.run(f, keys, lexer, height)
M.focus()
M:set_lexer(lexer or 'text')
M.height = M:text_height(0) * (height or 1)
- _G.keys._command_entry, _G.keys.MODE = keys, '_command_entry'
+ _G.keys._command_entry, _G.keys.mode = keys, '_command_entry'
end
-- Redefine ui.command_entry.focus() to clear any current key mode on hide/show.
local orig_focus = M.focus
M.focus = function()
- keys.MODE = nil
+ keys.mode = nil
orig_focus()
end