aboutsummaryrefslogtreecommitdiffhomepage
path: root/modules
diff options
context:
space:
mode:
authorGravatar mitchell <none@none>2021-09-01 19:18:00 -0400
committerGravatar mitchell <none@none>2021-09-01 19:18:00 -0400
commit80816ecdba807af53f556dc3523b7726625bd5c4 (patch)
treef3e3b0e3193b70400baf71b357ba6c306bbd42b8 /modules
parent60e9b400ac91cddf45cbaa49a984e729ba9eab6c (diff)
Do not run command entry again while in command entry.
This will hide the entry but keep the key mode.
Diffstat (limited to 'modules')
-rw-r--r--modules/textadept/command_entry.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/textadept/command_entry.lua b/modules/textadept/command_entry.lua
index c1dddc5e..0decfc6c 100644
--- a/modules/textadept/command_entry.lua
+++ b/modules/textadept/command_entry.lua
@@ -212,6 +212,7 @@ local prev_key_mode
-- @usage ui.command_entry.run(ui.print)
-- @name run
function M.run(f, keys, lang, height)
+ if _G.keys.mode == '_command_entry' then return end -- already in command entry
if not assert_type(f, 'function/nil', 1) and not keys then
f, keys, lang = run_lua, lua_keys, 'lua'
elseif type(assert_type(keys, 'table/string/nil', 2)) == 'string' then