diff options
author | 2018-05-01 12:53:06 -0400 | |
---|---|---|
committer | 2018-05-01 12:53:06 -0400 | |
commit | 213dcb8067d1ada085f572dfac2e5f00455f259c (patch) | |
tree | cc44cd2bae3c6ec827774b9eeb837e763d757ebc /init.lua | |
parent | d484850652c521eca748228e62074d3144c2e094 (diff) | |
download | textadept-213dcb8067d1ada085f572dfac2e5f00455f259c.tar.gz textadept-213dcb8067d1ada085f572dfac2e5f00455f259c.zip |
Fixed unset lexer bug upon splitting a newly created buffer.
Diffstat (limited to 'init.lua')
-rw-r--r-- | init.lua | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -319,6 +319,6 @@ events.connect(events.VIEW_NEW, function() -- Note: for some reason, calling SETDOCPOINTER before SETLEXERLANGUAGE is -- not needed in this case. local SETLEXERLANGUAGE = _SCINTILLA.properties.lexer_language[2] - buffer:private_lexer_call(SETLEXERLANGUAGE, buffer._lexer) + buffer:private_lexer_call(SETLEXERLANGUAGE, buffer._lexer or 'text') end end, 1) |