From 65b3a1091d8a466df5cb439ca59314f824127f61 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Mon, 26 Jan 2009 13:54:58 -0500 Subject: Changed MARK_BOOKMARK; modules/textadept/bookmarks.lua MARK_REPLACEALL_END should be the first marker (0), so MARK_BOOKMARK was changed to be the second marker (1). --- modules/textadept/bookmarks.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'modules') diff --git a/modules/textadept/bookmarks.lua b/modules/textadept/bookmarks.lua index 80853c29..dad9eaad 100644 --- a/modules/textadept/bookmarks.lua +++ b/modules/textadept/bookmarks.lua @@ -10,7 +10,7 @@ local textadept = _G.textadept module('_m.textadept.bookmarks', package.seeall) -- options -local MARK_BOOKMARK = 0 +local MARK_BOOKMARK = 1 local MARK_BOOKMARK_COLOR = 0xC08040 -- end options @@ -52,7 +52,7 @@ end function goto_next() local buffer = buffer local current_line = buffer:line_from_position(buffer.current_pos) - local line = buffer:marker_next(current_line + 1, 1) + local line = buffer:marker_next(current_line + 1, 2^MARK_BOOKMARK) if line >= 0 then _m.textadept.editing.goto_line(line + 1) end end @@ -61,6 +61,6 @@ end function goto_prev() local buffer = buffer local current_line = buffer:line_from_position(buffer.current_pos) - local line = buffer:marker_previous(current_line - 1, 1) + local line = buffer:marker_previous(current_line - 1, 2^MARK_BOOKMARK) if line >= 0 then _m.textadept.editing.goto_line(line + 1) end end -- cgit v1.2.3