From 6a588b467d856a6d75b6274c2ee4c0795526bffc Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Mon, 14 Mar 2011 17:32:29 -0400 Subject: Trigger Adeptsense in embedded lexers; modules/textadept/adeptsense.lua --- modules/textadept/adeptsense.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3