aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2009-01-26 13:54:58 -0500
committermitchell <70453897+667e-11@users.noreply.github.com>2009-01-26 13:54:58 -0500
commit65b3a1091d8a466df5cb439ca59314f824127f61 (patch)
treece5b814e45d3625957d7d334b1cdb873e88278db
parenta9e25b148995b532346149ed75d0fc8e815b9ac0 (diff)
downloadtextadept-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).
-rw-r--r--modules/textadept/bookmarks.lua6
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