aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--core/keys.lua2
-rw-r--r--modules/textadept/snippets.lua2
2 files changed, 2 insertions, 2 deletions
diff --git a/core/keys.lua b/core/keys.lua
index a7d0f3d1..a00beb7d 100644
--- a/core/keys.lua
+++ b/core/keys.lua
@@ -237,7 +237,7 @@ local function keypress(code, shift, control, alt, meta)
local success
for i = 1, 2 do
- local status = run_key_command(i == 1 and buffer:get_lexer())
+ local status = run_key_command(i == 1 and buffer:get_lexer(true))
if status > 0 then -- CHAIN or HALT
if status == HALT then
-- Clear the key sequence, but keep any status messages from the key
diff --git a/modules/textadept/snippets.lua b/modules/textadept/snippets.lua
index 23638862..45f32d83 100644
--- a/modules/textadept/snippets.lua
+++ b/modules/textadept/snippets.lua
@@ -179,7 +179,7 @@ function _insert(text)
local buffer = buffer
local trigger
if not text then
- local lexer = buffer:get_lexer()
+ local lexer = buffer:get_lexer(true)
trigger = buffer:text_range(buffer:word_start_position(buffer.current_pos),
buffer.current_pos)
local snip = snippets