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.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/textadept/bookmarks.lua b/modules/textadept/bookmarks.lua
index 072cca67..97121547 100644
--- a/modules/textadept/bookmarks.lua
+++ b/modules/textadept/bookmarks.lua
@@ -85,7 +85,7 @@ function goto()
line = buffer:marker_next(line + 1, 2^MARK_BOOKMARK)
until line < 0
local line = gui.filteredlist(L('Select Bookmark'), 'Bookmark', markers)
- if line then _m.textadept.editing.goto_line(tonumber(line:match('^%d+'))) end
+ if line then _m.textadept.editing.goto_line(line:match('^%d+')) end
end
if buffer then buffer:marker_set_back(MARK_BOOKMARK, MARK_BOOKMARK_COLOR) end