diff options
author | 2012-09-28 15:40:37 -0400 | |
---|---|---|
committer | 2012-09-28 15:40:37 -0400 | |
commit | dfea1ebfbf6876eaf9112e84cf883d32aab167fb (patch) | |
tree | 1b9bdc6444322721bc22990aa1899570b6e3fa87 | |
parent | ea4775ceb5fdddcdcf533d705ee3880da2cd0997 (diff) | |
download | textadept-dfea1ebfbf6876eaf9112e84cf883d32aab167fb.tar.gz textadept-dfea1ebfbf6876eaf9112e84cf883d32aab167fb.zip |
Use the bit32 library for checking marker bits; modules/textadept/bookmarks.lua
-rw-r--r-- | modules/textadept/bookmarks.lua | 2 |
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 |