aboutsummaryrefslogtreecommitdiff
path: root/modules/textadept/bookmarks.lua
diff options
context:
space:
mode:
Diffstat (limited to 'modules/textadept/bookmarks.lua')
-rw-r--r--modules/textadept/bookmarks.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/textadept/bookmarks.lua b/modules/textadept/bookmarks.lua
index 24eea717..9f2d1c10 100644
--- a/modules/textadept/bookmarks.lua
+++ b/modules/textadept/bookmarks.lua
@@ -74,7 +74,7 @@ function M.goto_mark(next)
}
if button ~= 1 or not mark then return end
view:goto_buffer(buffers[mark])
- textadept.editing.goto_line(utf8_list[mark]:match('^[^:]+:(%d+):'))
+ textadept.editing.goto_line(utf8_list[mark]:match('^[^:]+:(%d+):') - 1)
else
local f = next and buffer.marker_next or buffer.marker_previous
local current_line = buffer:line_from_position(buffer.current_pos)
@@ -82,7 +82,7 @@ function M.goto_mark(next)
if line == -1 then
line = f(buffer, (next and 0 or buffer.line_count), 2^M.MARK_BOOKMARK)
end
- if line >= 0 then textadept.editing.goto_line(line + 1) end
+ if line >= 0 then textadept.editing.goto_line(line) end
end
end