aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2011-03-14 17:32:29 -0400
committermitchell <70453897+667e-11@users.noreply.github.com>2011-03-14 17:32:29 -0400
commit6a588b467d856a6d75b6274c2ee4c0795526bffc (patch)
tree1782b00af5ff8e6eabfab24ebe323e4da0f9cdc7 /modules
parent76d1961e1f9e0d081eac3ed4130a2d0080d538ca (diff)
downloadtextadept-6a588b467d856a6d75b6274c2ee4c0795526bffc.tar.gz
textadept-6a588b467d856a6d75b6274c2ee4c0795526bffc.zip
Trigger Adeptsense in embedded lexers; modules/textadept/adeptsense.lua
Diffstat (limited to 'modules')
-rw-r--r--modules/textadept/adeptsense.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/textadept/adeptsense.lua b/modules/textadept/adeptsense.lua
index 915a3470..a1dfc03c 100644
--- a/modules/textadept/adeptsense.lua
+++ b/modules/textadept/adeptsense.lua
@@ -518,7 +518,7 @@ function add_trigger(sense, c, only_fields, only_functions)
if #c > 2 then return end -- TODO: warn
local c1, c2 = c:match('.$'):byte(), #c > 1 and c:sub(1, 1):byte()
local i = events.connect('char_added', function(char)
- if char == c1 and buffer:get_lexer() == sense.lexer then
+ if char == c1 and buffer:get_lexer(true) == sense.lexer then
if c2 and buffer.char_at[buffer.current_pos - 2] ~= c2 then return end
sense:complete(only_fields, only_functions)
end