diff options
author | 2009-08-22 20:39:44 -0400 | |
---|---|---|
committer | 2009-08-22 20:39:44 -0400 | |
commit | 57fc14d1ad91e100749f4bd8aef1dab807fe8176 (patch) | |
tree | 536e863f1304e99ad1e204d785fcba58aebeb5b5 | |
parent | 7996dd40215cab6bac27df17dfc45ffd24510128 (diff) | |
download | textadept-57fc14d1ad91e100749f4bd8aef1dab807fe8176.tar.gz textadept-57fc14d1ad91e100749f4bd8aef1dab807fe8176.zip |
Fixed bug in core/ext/mime_types.lua caused during textadept.reset().
-rw-r--r-- | core/ext/mime_types.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/ext/mime_types.lua b/core/ext/mime_types.lua index d9a073a0..a75a2442 100644 --- a/core/ext/mime_types.lua +++ b/core/ext/mime_types.lua @@ -118,7 +118,8 @@ local function set_lexer(buffer, lang) end textadept.events.add_handler('buffer_new', function() buffer.set_lexer = set_lexer end) -buffer.set_lexer = set_lexer -- Scintilla's first buffer doesn't have this +-- Scintilla's first buffer doesn't have this +if not RESETTING then buffer.set_lexer = set_lexer end -- Performs actions suitable for a new buffer. -- Sets the buffer's lexer language and loads the language module. |