diff options
author | 2009-01-05 23:01:06 -0500 | |
---|---|---|
committer | 2009-01-05 23:01:06 -0500 | |
commit | 40518ad4d4538b4bc7d1c063dda715fd9601b9c9 (patch) | |
tree | f007710280d019a3517afdb6fe55b46661f813fc /modules/textadept/bookmarks.lua | |
parent | c15e9a9cf36da02cb883eb14fd3a4ee23548f675 (diff) | |
download | textadept-40518ad4d4538b4bc7d1c063dda715fd9601b9c9.tar.gz textadept-40518ad4d4538b4bc7d1c063dda715fd9601b9c9.zip |
Fixed modules/textadept/bookmarks.lua bug for goto next and prev bookmark.
Diffstat (limited to 'modules/textadept/bookmarks.lua')
-rw-r--r-- | modules/textadept/bookmarks.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/textadept/bookmarks.lua b/modules/textadept/bookmarks.lua index 93c9196b..8bcd3e7d 100644 --- a/modules/textadept/bookmarks.lua +++ b/modules/textadept/bookmarks.lua @@ -49,7 +49,7 @@ end -- Goes to the next bookmark in the current buffer. function goto_next() local current_line = buffer:line_from_position(buffer.current_pos) - local line = buffer:marker_next(current_line, 1) + local line = buffer:marker_next(current_line + 1, 1) if line >= 0 then _m.textadept.editing.goto_line(line + 1) end end @@ -57,6 +57,6 @@ end -- Goes to the previous bookmark in the current buffer. function goto_prev() local current_line = buffer:line_from_position(buffer.current_pos) - local line = buffer:marker_previous(current_line, 1) + local line = buffer:marker_previous(current_line - 1, 1) if line >= 0 then _m.textadept.editing.goto_line(line + 1) end end |