aboutsummaryrefslogtreecommitdiff
path: root/modules/textadept/bookmarks.lua
diff options
context:
space:
mode:
Diffstat (limited to 'modules/textadept/bookmarks.lua')
-rw-r--r--modules/textadept/bookmarks.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/textadept/bookmarks.lua b/modules/textadept/bookmarks.lua
index 4ba836ca..1812f2d6 100644
--- a/modules/textadept/bookmarks.lua
+++ b/modules/textadept/bookmarks.lua
@@ -24,7 +24,7 @@ function M.toggle(on)
local f = on and buffer.marker_add or buffer.marker_delete
if on == nil then -- toggle
local bit, marker_mask = 2^MARK_BOOKMARK, buffer:marker_get(line)
- if marker_mask % (bit + bit) < bit then f = buffer.marker_add end
+ if bit32.band(marker_mask, bit) == 0 then f = buffer.marker_add end
end
f(buffer, line, MARK_BOOKMARK)
end