aboutsummaryrefslogtreecommitdiff
path: root/modules/textadept/file_types.lua
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2014-01-01 12:28:33 -0500
committermitchell <70453897+667e-11@users.noreply.github.com>2014-01-01 12:28:33 -0500
commitee8e402829b65901351bbbf7417c291da7c3b541 (patch)
treea87d3008adae84a0e2a0a8ee07b1464aa4a29557 /modules/textadept/file_types.lua
parent66bfdfeda14c40f631fe808c0b2d50ee2f14a254 (diff)
downloadtextadept-ee8e402829b65901351bbbf7417c291da7c3b541.tar.gz
textadept-ee8e402829b65901351bbbf7417c291da7c3b541.zip
Merge the separate Textadept and lexer Lua states into a single unified one.
This is an experimental change and requires the latest Scintillua changes.
Diffstat (limited to 'modules/textadept/file_types.lua')
-rw-r--r--modules/textadept/file_types.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/textadept/file_types.lua b/modules/textadept/file_types.lua
index aa17246e..dfb4ed63 100644
--- a/modules/textadept/file_types.lua
+++ b/modules/textadept/file_types.lua
@@ -114,6 +114,7 @@ events.connect(events.FILE_SAVED_AS, function() buffer:set_lexer() end)
-- Restores the buffer's lexer.
local function restore_lexer() buffer:set_lexer(buffer._lexer) end
events.connect(events.BUFFER_AFTER_SWITCH, restore_lexer)
+events.connect(events.VIEW_AFTER_SWITCH, restore_lexer)
events.connect(events.VIEW_NEW, restore_lexer)
events.connect(events.RESET_AFTER, restore_lexer)