diff options
author | 2012-12-03 19:44:24 -0500 | |
---|---|---|
committer | 2012-12-03 19:44:24 -0500 | |
commit | 354091b80b8fc06f760ad4fd5d2a00c4d82a1831 (patch) | |
tree | 4ec5959c3e420da93e83b2814642d6c979a63afd /modules/textadept/command_entry.lua | |
parent | c43227c796adc7ee496caa878164fa8139671b49 (diff) | |
download | textadept-354091b80b8fc06f760ad4fd5d2a00c4d82a1831.tar.gz textadept-354091b80b8fc06f760ad4fd5d2a00c4d82a1831.zip |
Recognize special ncurses keys better.
Diffstat (limited to 'modules/textadept/command_entry.lua')
-rw-r--r-- | modules/textadept/command_entry.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/textadept/command_entry.lua b/modules/textadept/command_entry.lua index 149c37c8..225b1330 100644 --- a/modules/textadept/command_entry.lua +++ b/modules/textadept/command_entry.lua @@ -43,7 +43,7 @@ end) events.connect(events.COMMAND_ENTRY_KEYPRESS, function(code) if keys.KEYSYMS[code] == 'esc' then gui.command_entry.focus() -- toggle focus to hide - elseif not NCURSES and keys.KEYSYMS[code] == '\t' or code == 9 then + elseif keys.KEYSYMS[code] == '\t' then local substring = gui.command_entry.entry_text:match('[%w_.:]+$') or '' local path, o, prefix = substring:match('^([%w_.:]-)([.:]?)([%w_]*)$') local f, err = load('return ('..path..')', nil, 'bt', env) |