aboutsummaryrefslogtreecommitdiff
path: root/modules/textadept/mlines.lua
diff options
context:
space:
mode:
Diffstat (limited to 'modules/textadept/mlines.lua')
-rw-r--r--modules/textadept/mlines.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/textadept/mlines.lua b/modules/textadept/mlines.lua
index ab83172c..daddf4b5 100644
--- a/modules/textadept/mlines.lua
+++ b/modules/textadept/mlines.lua
@@ -137,6 +137,6 @@ function update()
buffer:end_undo_action()
end
-buffer:marker_set_back(MARK_MLINE, MARK_MLINE_COLOR)
+if buffer then buffer:marker_set_back(MARK_MLINE, MARK_MLINE_COLOR) end
textadept.events.add_handler('view_new',
function() buffer:marker_set_back(MARK_MLINE, MARK_MLINE_COLOR) end)