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