aboutsummaryrefslogtreecommitdiff
path: root/modules/textadept/session.lua
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2018-04-25 22:52:33 -0400
committermitchell <70453897+667e-11@users.noreply.github.com>2018-04-25 22:52:33 -0400
commit5f4fbc763a90a38508a0a7d4f4ae7a2262ecbd39 (patch)
treea66ddc4caf4b8a9509330433571d586a6843fe27 /modules/textadept/session.lua
parent795f72c6d49c0566517a43808ce7aaf405220f31 (diff)
downloadtextadept-5f4fbc763a90a38508a0a7d4f4ae7a2262ecbd39.tar.gz
textadept-5f4fbc763a90a38508a0a7d4f4ae7a2262ecbd39.zip
Removed LuaJIT version of Textadept.
Also updated to Lua 5.3 syntax where held back by LuaJIT's 5.1/5.2 syntax.
Diffstat (limited to 'modules/textadept/session.lua')
-rw-r--r--modules/textadept/session.lua5
1 files changed, 3 insertions, 2 deletions
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