diff options
author | 2009-01-26 13:54:58 -0500 | |
---|---|---|
committer | 2009-01-26 13:54:58 -0500 | |
commit | 65b3a1091d8a466df5cb439ca59314f824127f61 (patch) | |
tree | ce5b814e45d3625957d7d334b1cdb873e88278db /modules | |
parent | a9e25b148995b532346149ed75d0fc8e815b9ac0 (diff) | |
download | textadept-65b3a1091d8a466df5cb439ca59314f824127f61.tar.gz textadept-65b3a1091d8a466df5cb439ca59314f824127f61.zip |
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).
Diffstat (limited to 'modules')
-rw-r--r-- | modules/textadept/bookmarks.lua | 6 |
1 files changed, 3 insertions, 3 deletions
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 |