diff options
-rw-r--r-- | dalos.lua | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -547,6 +547,7 @@ dalosp.object = { set_houtput = dalosp.object.set_houtput, houtputs = {}, get_linked_input = dalosp.object.get_linked_input, + dcanvas = dcanvas, } if tab.otype and not tab.c then @@ -595,11 +596,13 @@ dalosp.hexview = { if not h then self.color = cd.YELLOW hv:updatehandle(nil) + self.dcanvas:draw() return end if not h:canread() or not h:canseek() then self.color = cd.RED hv:updatehandle(nil) + self.dcanvas:draw() return end self.color = cd.GREEN @@ -608,6 +611,7 @@ dalosp.hexview = { self.oldcursors[i] = -1 end hv:updatehandle(h) + self.dcanvas:draw() end, configure = function (self) @@ -660,7 +664,7 @@ dalosp.hexview = { self.got_eof = false - local r = self.lh:read(count, userdata) + local r = self.h:read(count, userdata) self.offset = self.offset + r if r == 0 then self.got_eof = true end return r |