diff options
author | Pixel <pixel@nobis-crew.org> | 2009-12-23 00:02:53 +0100 |
---|---|---|
committer | Pixel <pixel@nobis-crew.org> | 2009-12-23 00:02:53 +0100 |
commit | 95b71cfc474f247e7e1081ea67c7a2166ddd3805 (patch) | |
tree | 7413f89780506ca725d36982d1cb9a9a0894f465 | |
parent | 1a74fe712bb4d1c3f968e943b2f8de89420a6a3f (diff) |
Fixing the markers bug
-rw-r--r-- | iupe-hexview.lua | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/iupe-hexview.lua b/iupe-hexview.lua index 4b135f0..1d5f9e3 100644 --- a/iupe-hexview.lua +++ b/iupe-hexview.lua @@ -118,8 +118,9 @@ iupep.hexview = { local marker for i = 0, 10 do - marker = self.markers[i] - if marker ~= -1 then + marker = self.markers[i] or -1 + marker = marker - filecursor + if marker >= 0 and marker < nbbytes then mline = math.floor(marker / columns) mcolumn = marker % columns self:colorgrid(markercolors[i], 2, mline, mcolumn * 3 + 10) |