From 4e55b247304ebc962d59ffa61d8788df802b0d6a Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Thu, 16 Jun 2016 23:29:56 -0400 Subject: Changed arguments to `ui.goto_view()` and `view:goto_buffer()`. They can accept either objects or relative numbers now. They do not accept absolute indices anymore. --- modules/textadept/bookmarks.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/textadept/bookmarks.lua') diff --git a/modules/textadept/bookmarks.lua b/modules/textadept/bookmarks.lua index 9f2d1c10..c11f0fa5 100644 --- a/modules/textadept/bookmarks.lua +++ b/modules/textadept/bookmarks.lua @@ -62,7 +62,7 @@ function M.goto_mark(next) while line >= 0 do local mark = string.format('%s:%d: %s', basename, line + 1, buffer:get_line(line):match('^[^\r\n]*')) - utf8_list[#utf8_list + 1], buffers[#utf8_list + 1] = mark, i + utf8_list[#utf8_list + 1], buffers[#utf8_list + 1] = mark, buffer line = buffer:marker_next(line + 1, 2^M.MARK_BOOKMARK) end end -- cgit v1.2.3