diff options
Diffstat (limited to 'modules/textadept/bookmarks.lua')
-rw-r--r-- | modules/textadept/bookmarks.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/textadept/bookmarks.lua b/modules/textadept/bookmarks.lua index c70983a1..6c9f7a03 100644 --- a/modules/textadept/bookmarks.lua +++ b/modules/textadept/bookmarks.lua @@ -49,7 +49,7 @@ function M.goto_mark(next) local marks, line = {}, buffer:marker_next(0, 2^M.MARK_BOOKMARK) if line == -1 then return end repeat - local text = buffer:get_line(line):sub(1, -2) -- chop \n + local text = buffer:get_line(line):match('^[^\r\n]*') marks[#marks + 1] = tostring(line + 1)..': '..text line = buffer:marker_next(line + 1, 2^M.MARK_BOOKMARK) until line < 0 |