diff options
-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) |