aboutsummaryrefslogtreecommitdiff
path: root/modules/textadept/run.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/run.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/run.lua')
-rw-r--r--modules/textadept/run.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/textadept/run.lua b/modules/textadept/run.lua
index 1ae75ae0..c81e3aa4 100644
--- a/modules/textadept/run.lua
+++ b/modules/textadept/run.lua
@@ -361,11 +361,11 @@ function M.goto_error(line, next)
if not line and next ~= nil then
local f = buffer['marker_'..(next and 'next' or 'previous')]
line = buffer:line_from_position(buffer.current_pos)
- local wline = f(buffer, line + (next and 1 or -1), 2^M.MARK_WARNING)
- local eline = f(buffer, line + (next and 1 or -1), 2^M.MARK_ERROR)
+ local wline = f(buffer, line + (next and 1 or -1), 1 << M.MARK_WARNING)
+ local eline = f(buffer, line + (next and 1 or -1), 1 << M.MARK_ERROR)
if wline == -1 and eline == -1 then
- wline = f(buffer, next and 0 or buffer.line_count, 2^M.MARK_WARNING)
- eline = f(buffer, next and 0 or buffer.line_count, 2^M.MARK_ERROR)
+ wline = f(buffer, next and 0 or buffer.line_count, 1 << M.MARK_WARNING)
+ eline = f(buffer, next and 0 or buffer.line_count, 1 << M.MARK_ERROR)
elseif wline == -1 or eline == -1 then
if wline == -1 then wline = eline else eline = wline end
end