diff options
author | Pixel <pixel@nobis-crew.org> | 2009-12-19 17:44:13 -0800 |
---|---|---|
committer | Pixel <pixel@nobis-crew.org> | 2009-12-19 17:44:13 -0800 |
commit | 9ce69b6bc34655e437feccd89354730c91e5677b (patch) | |
tree | ff977201faae430b41576c932cc9418e9a72c2ef /dalos-hexview.lua | |
parent | 41b76a159954d1f47eb4937ded57c58cb3522f96 (diff) |
Adding a first stub for binary ops, and fixing hexviewer's ability to destroy its input when going too far in the file.
Diffstat (limited to 'dalos-hexview.lua')
-rw-r--r-- | dalos-hexview.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/dalos-hexview.lua b/dalos-hexview.lua index 7e46ed6..b085f12 100644 --- a/dalos-hexview.lua +++ b/dalos-hexview.lua @@ -67,6 +67,8 @@ dalosp.hexview = { else
error "Unknown wheel"
end
+ if self.offset < 0 then self.offset = 0 end
+ if self.offset >= self.size then self.offset = self.size end
self.h:seek(self.offset + self.origin)
return self.offset
end,
|