aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--toggler.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/toggler.lua b/toggler.lua
index 952b0c9..a08e5da 100644
--- a/toggler.lua
+++ b/toggler.lua
@@ -70,6 +70,9 @@ local function operator_new(key, handler, object, motion, help, novisual)
end
end
+-- Inverts and unrolls all config table entries.
+-- With this table format, make_shift() can use the same logic for both numeric and word increment/decrement.
+-- The original format is more sensible to humans, though.
local function preprocess(tbl)
local cfg = {}
for _, options in ipairs(tbl) do