From 87fb3480dbcf3975fa721856e414838108a2c38b Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Mon, 23 Feb 2009 09:38:32 -0500 Subject: Fixed index error on textadept.reset() for bookmarks and mlines modules. --- modules/textadept/mlines.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/textadept/mlines.lua') 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) -- cgit v1.2.3