diff options
author | Pixel <pixel@nobis-crew.org> | 2009-12-19 20:51:10 -0800 |
---|---|---|
committer | Pixel <pixel@nobis-crew.org> | 2009-12-19 20:51:10 -0800 |
commit | af5acc8f85b110afdaf1ae4ddd63fd3a6c2bfef6 (patch) | |
tree | f4300984e259d7dae4b634becaa6fa27dd2c1f83 | |
parent | 41ed35236818d3f08b468e30add7ccfd05cde2c5 (diff) |
hexview shouldn't crash if it has no real input.
-rw-r--r-- | dalos-hexview.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dalos-hexview.lua b/dalos-hexview.lua index f14e1e0..8aa53bb 100644 --- a/dalos-hexview.lua +++ b/dalos-hexview.lua @@ -40,7 +40,7 @@ dalosp.hexview = { update_houtput = function (self, ind, cursor)
local h = self:get_linked_input(1)
- local maxsixe = h:getsize()
+ local maxsixe = h and h:getsize() or -1
if h and self.watchees[ind] then
if cursor < maxsize then
self:set_houtput(nil, ind)
|