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.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/textadept/command_entry.lua b/modules/textadept/command_entry.lua
index db26b8f2..8033b48c 100644
--- a/modules/textadept/command_entry.lua
+++ b/modules/textadept/command_entry.lua
@@ -10,6 +10,8 @@ local M = ui.command_entry
-- running Lua code and filtering text through shell commands) and history.
-- @field height (number)
-- The height in pixels of the command entry.
+-- @field active (boolean)
+-- Whether or not the command entry is active.
module('ui.command_entry')]]
-- Command history per mode.
@@ -237,6 +239,7 @@ end
local orig_focus = M.focus
M.focus = function()
keys.mode = prev_key_mode
+ M.active = not M.active
orig_focus()
end