aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2018-11-06 08:34:09 -0500
committermitchell <70453897+667e-11@users.noreply.github.com>2018-11-06 08:34:09 -0500
commit8cb98a9359a98827662f84c565902154d6e5e7b0 (patch)
tree47bf1b8aa100951fd4cb85d0ad2dca4eb36103fc
parent1ec0275e4119238f883aae18655486b4f7fc70ac (diff)
downloadtextadept-8cb98a9359a98827662f84c565902154d6e5e7b0.tar.gz
textadept-8cb98a9359a98827662f84c565902154d6e5e7b0.zip
Ensure 'Esc' clears highlighted words.
-rw-r--r--modules/textadept/editing.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/textadept/editing.lua b/modules/textadept/editing.lua
index 33e4f684..2d6ded80 100644
--- a/modules/textadept/editing.lua
+++ b/modules/textadept/editing.lua
@@ -466,7 +466,7 @@ local function clear_highlighted_words()
end
events.connect(events.KEYPRESS, function(code)
if keys.KEYSYMS[code] == 'esc' then clear_highlighted_words() end
-end)
+end, 1)
---
-- Highlights all occurrences of the selected text or all occurrences of the