clean up
This commit is contained in:
16
init.lua
16
init.lua
@@ -14,21 +14,6 @@ local SUPPORTED_KEYS = {
|
|||||||
{ on = "u"}, { on = "v"}, { on = "w"}, { on = "x"}, { on = "y"}, { on = "z"},
|
{ on = "u"}, { on = "v"}, { on = "w"}, { on = "x"}, { on = "y"}, { on = "z"},
|
||||||
}
|
}
|
||||||
|
|
||||||
local function dump(o)
|
|
||||||
if type(o) == "table" then
|
|
||||||
local s = "{ "
|
|
||||||
for k, v in pairs(o) do
|
|
||||||
if type(k) ~= "number" then
|
|
||||||
k = '"' .. k .. '"'
|
|
||||||
end
|
|
||||||
s = s .. "[" .. k .. "] = " .. dump(v) .. ","
|
|
||||||
end
|
|
||||||
return s .. "} "
|
|
||||||
else
|
|
||||||
return tostring(o)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
local function save_bookmark(idx)
|
local function save_bookmark(idx)
|
||||||
if idx == -1 then
|
if idx == -1 then
|
||||||
return
|
return
|
||||||
@@ -99,7 +84,6 @@ return {
|
|||||||
elseif action == "_jump" then
|
elseif action == "_jump" then
|
||||||
if #args == 1 then
|
if #args == 1 then
|
||||||
-- Should never enter here, but just to be safe
|
-- Should never enter here, but just to be safe
|
||||||
ya.err("No arguments for '_jump'")
|
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user