From 5f4fbc763a90a38508a0a7d4f4ae7a2262ecbd39 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Wed, 25 Apr 2018 22:52:33 -0400 Subject: Removed LuaJIT version of Textadept. Also updated to Lua 5.3 syntax where held back by LuaJIT's 5.1/5.2 syntax. --- modules/textadept/session.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'modules/textadept/session.lua') diff --git a/modules/textadept/session.lua b/modules/textadept/session.lua index c4bc4f3d..18ab1851 100644 --- a/modules/textadept/session.lua +++ b/modules/textadept/session.lua @@ -144,10 +144,11 @@ function M.save(filename) filename) -- Write out bookmarks. local lines = {} - local line = buffer:marker_next(0, 2^textadept.bookmarks.MARK_BOOKMARK) + local line = buffer:marker_next(0, 1 << textadept.bookmarks.MARK_BOOKMARK) while line >= 0 do lines[#lines + 1] = line - line = buffer:marker_next(line + 1, 2^textadept.bookmarks.MARK_BOOKMARK) + line = buffer:marker_next(line + 1, + 1 << textadept.bookmarks.MARK_BOOKMARK) end session[#session + 1] = 'bookmarks: '..table.concat(lines, ' ') end -- cgit v1.2.3