diff options
Diffstat (limited to 'dalos-hexview.lua')
-rw-r--r-- | dalos-hexview.lua | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/dalos-hexview.lua b/dalos-hexview.lua index 26eaa77..a302d39 100644 --- a/dalos-hexview.lua +++ b/dalos-hexview.lua @@ -45,7 +45,7 @@ dalosp.hexview = { nblines = hv.nblines + 0,
}
for i = 1, 10 do
- rmarkers[i] = hv.markers[i] + 0
+ r.markers[i] = hv.markers[i] + 0
end
return r
end,
@@ -109,7 +109,7 @@ dalosp.hexview = { tab.input_change = dalosp.hexview.input_change
tab.output_change = dalosp.hexview.output_change
tab.configure = dalosp.hexview.configure
- tab.get_settings = dalosp.get_settings
+ tab.get_settings = dalosp.hexview.get_settings
tab.ninputs = 1
tab.noutputs = 12
tab.default_name = "Hexview"
@@ -135,14 +135,14 @@ dalosp.hexview = { if settings then
if settings.markers then
for i = 1, 10 do
- hv.markers[i] = settings.markers[i]
+ if settings.markers[i] then hv.markers[i] = settings.markers[i] end
end
end
- hv.mcursor = settings.mcursor
- hv.kcursor = settings.kcursor
- hv.filecursor = settings.filecursor
- hv.nbbytes = settings.nbbytes
- hv.nblines = settings.nblines
+ if settings.mcursor then hv.mcursor = settings.mcursor end
+ if settings.kcursor then hv.kcursor = settings.kcursor end
+ if settings.filecursor then hv.filecursor = settings.filecursor end
+ if settings.nbbytes then hv.nbbytes = settings.nbbytes end
+ if settings.nblines then hv.nblines = settings.nblines end
end
hv:registercb(dalosp.hexview.dalos_hv_cb, obj)
|