From fd0053f94dc67bebeeeaf0faa72de0b532276719 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Thu, 24 Sep 2015 15:44:23 -0400 Subject: Do not emit LEXER_LOADED for the command entry; modules/textadept/file_types.lua Language-specific code may run inadvertantly. --- modules/textadept/file_types.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules') diff --git a/modules/textadept/file_types.lua b/modules/textadept/file_types.lua index cb2735b6..962c18cd 100644 --- a/modules/textadept/file_types.lua +++ b/modules/textadept/file_types.lua @@ -73,7 +73,7 @@ local function set_lexer(buffer, lang) local post_init = lang..'.post_init' if package.searchpath(post_init, package.path) then require(post_init) end end - events.emit(events.LEXER_LOADED, lang) + if buffer ~= ui.command_entry then events.emit(events.LEXER_LOADED, lang) end local last_line = buffer.first_visible_line + buffer.lines_on_screen buffer:colourise(0, buffer:position_from_line(last_line + 1)) end -- cgit v1.2.3