aboutsummaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2010-12-29 15:58:47 -0500
committermitchell <70453897+667e-11@users.noreply.github.com>2010-12-29 15:58:47 -0500
commitac1a1ab03ef259d18053be47a31ff389eb88e45c (patch)
tree3d76fb5ad36aed6f11c19256ef6746a86041867a /core
parent90414c5d499f6b33e392b9ff8dd186b036fee770 (diff)
downloadtextadept-ac1a1ab03ef259d18053be47a31ff389eb88e45c.tar.gz
textadept-ac1a1ab03ef259d18053be47a31ff389eb88e45c.zip
Fix bug for gui.statusbar_text being nil; core/keys.lua
Diffstat (limited to 'core')
-rw-r--r--core/keys.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/keys.lua b/core/keys.lua
index 522b2419..a5e47662 100644
--- a/core/keys.lua
+++ b/core/keys.lua
@@ -257,8 +257,8 @@ local function keypress(code, shift, control, alt)
-- Clear the key sequence, but keep any status messages from the key
-- command itself.
keychain = {}
- if gui.statusbar_text == L('Invalid sequence') or
- gui.statusbar_text:find('^'..L('Keychain:')) then
+ local text = gui.statusbar_text or ''
+ if text == L('Invalid sequence') or text:find('^'..L('Keychain:')) then
gui.statusbar_text = ''
end
end