diff options
author | 2010-08-17 00:28:31 -0400 | |
---|---|---|
committer | 2010-08-17 00:28:31 -0400 | |
commit | 3d4c3dc0cba751e6a765ea33f6780f8d1a3fca21 (patch) | |
tree | f86a91034ba90fe049cf4b73dac7c4883383d320 /modules/textadept/snippets.lua | |
parent | 63bc0f15b6f475b53e86e31e88119781c560ba77 (diff) | |
download | textadept-3d4c3dc0cba751e6a765ea33f6780f8d1a3fca21.tar.gz textadept-3d4c3dc0cba751e6a765ea33f6780f8d1a3fca21.zip |
Upgraded to Scintilla/SciTE 2.20.
Diffstat (limited to 'modules/textadept/snippets.lua')
-rw-r--r-- | modules/textadept/snippets.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/textadept/snippets.lua b/modules/textadept/snippets.lua index f0da90e5..e8af7ac1 100644 --- a/modules/textadept/snippets.lua +++ b/modules/textadept/snippets.lua @@ -314,7 +314,7 @@ function _insert(s_text) local anchor, caret = buffer.anchor, buffer.current_pos local lexer, style, start, s_name if not s_text then - lexer = buffer:get_lexer_language() + lexer = buffer:get_lexer() style = buffer:get_style_name(buffer.style_at[caret]) buffer:word_left_extend() start = buffer.current_pos @@ -445,7 +445,7 @@ function _list() end local snippets = _G.snippets add_snippets(snippets) - local lexer = buffer:get_lexer_language() + local lexer = buffer:get_lexer() local style = buffer:get_style_name(buffer.style_at[buffer.current_pos]) if snippets[lexer] and type(snippets[lexer]) == 'table' then add_snippets(snippets[lexer]) @@ -461,7 +461,7 @@ end -- Shows the style at the current caret position in a call tip. function _show_style() local buffer = buffer - local lexer = buffer:get_lexer_language() + local lexer = buffer:get_lexer() local style_num = buffer.style_at[buffer.current_pos] local style = buffer:get_style_name(style_num) local text = |