diff options
author | 2012-03-14 15:51:12 -0400 | |
---|---|---|
committer | 2012-03-14 15:51:12 -0400 | |
commit | 9964c09b5a9a769786f9fc62f316781050fe2dc9 (patch) | |
tree | 3b93ab3e4c899b1f8585b5d5a4b980539d878382 /modules/textadept/adeptsense.lua | |
parent | 0d69af77291c66e4d982497b8e189f5228d4d07e (diff) | |
download | textadept-9964c09b5a9a769786f9fc62f316781050fe2dc9.tar.gz textadept-9964c09b5a9a769786f9fc62f316781050fe2dc9.zip |
Use buffer:get_lexer(true) more often when it should be used.
Diffstat (limited to 'modules/textadept/adeptsense.lua')
-rw-r--r-- | modules/textadept/adeptsense.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/textadept/adeptsense.lua b/modules/textadept/adeptsense.lua index 75ace0ef..7c1658c4 100644 --- a/modules/textadept/adeptsense.lua +++ b/modules/textadept/adeptsense.lua @@ -927,7 +927,7 @@ end -- This should be called by key commands and menus instead of `complete()`. -- @name complete_symbol function M.complete_symbol() - local m = _M[buffer:get_lexer()] + local m = _M[buffer:get_lexer(true)] if m and m.sense then m.sense:complete() end end @@ -937,7 +937,7 @@ end -- This should be called by key commands and menus instead of `show_apidoc()`. -- @name show_documentation function M.show_documentation() - local m = _M[buffer:get_lexer()] + local m = _M[buffer:get_lexer(true)] if m and m.sense then m.sense:show_apidoc() end end |