aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/textadept/command_entry.lua2
-rw-r--r--modules/textadept/find.lua2
2 files changed, 2 insertions, 2 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)
diff --git a/modules/textadept/find.lua b/modules/textadept/find.lua
index ade3fd1b..9944076c 100644
--- a/modules/textadept/find.lua
+++ b/modules/textadept/find.lua
@@ -248,7 +248,7 @@ end
events_connect(events.COMMAND_ENTRY_KEYPRESS, function(code)
if not find.incremental then return end
- if not NCURSES and keys.KEYSYMS[code] == 'esc' or code == 27 then
+ if keys.KEYSYMS[code] == 'esc' then
find.incremental = nil
elseif keys.KEYSYMS[code] == '\b' then
find_incremental(gui.command_entry.entry_text:sub(1, -2))