diff options
author | 2020-03-16 16:11:57 -0400 | |
---|---|---|
committer | 2020-03-16 16:11:57 -0400 | |
commit | 02b7d6e35fd12be808814f9dec29f897c9911539 (patch) | |
tree | 0129fd1292d4e6ff528804521ba6eed0148c995f /modules/textadept | |
parent | c8e73a92164fa17597985dd4f2d63ec2d91badd8 (diff) | |
download | textadept-02b7d6e35fd12be808814f9dec29f897c9911539.tar.gz textadept-02b7d6e35fd12be808814f9dec29f897c9911539.zip |
Renamed `keys.MODE` to `keys.mode`.
Diffstat (limited to 'modules/textadept')
-rw-r--r-- | modules/textadept/command_entry.lua | 4 |
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 |