diff options
author | 2009-02-23 09:38:32 -0500 | |
---|---|---|
committer | 2009-02-23 09:38:32 -0500 | |
commit | 87fb3480dbcf3975fa721856e414838108a2c38b (patch) | |
tree | cff736d0c2e912e65f7c840b95ca741217999200 /modules/textadept | |
parent | bf802c64d24f8e3a2cb71c6d7c1c07ac14b12bd4 (diff) | |
download | textadept-87fb3480dbcf3975fa721856e414838108a2c38b.tar.gz textadept-87fb3480dbcf3975fa721856e414838108a2c38b.zip |
Fixed index error on textadept.reset() for bookmarks and mlines modules.
Diffstat (limited to 'modules/textadept')
-rw-r--r-- | modules/textadept/bookmarks.lua | 2 | ||||
-rw-r--r-- | modules/textadept/mlines.lua | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/modules/textadept/bookmarks.lua b/modules/textadept/bookmarks.lua index fa890ec2..3fdca987 100644 --- a/modules/textadept/bookmarks.lua +++ b/modules/textadept/bookmarks.lua @@ -70,6 +70,6 @@ function goto_prev() if line >= 0 then _m.textadept.editing.goto_line(line + 1) end end -buffer:marker_set_back(MARK_BOOKMARK, MARK_BOOKMARK_COLOR) +if buffer then buffer:marker_set_back(MARK_BOOKMARK, MARK_BOOKMARK_COLOR) end textadept.events.add_handler('view_new', function() buffer:marker_set_back(MARK_BOOKMARK, MARK_BOOKMARK_COLOR) end) 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) |