aboutsummaryrefslogtreecommitdiffstats
path: root/edconf.lua
diff options
context:
space:
mode:
authorFrank Seifferth <frankseifferth@posteo.net>2021-10-07 17:16:11 +0200
committerFrank Seifferth <frankseifferth@posteo.net>2021-10-07 17:16:18 +0200
commitec49068a1a6ac9509946456cfb1753f79618cf30 (patch)
tree2187e9af4035a91133b0b0aa45051b9211113640 /edconf.lua
parent0ee415c2d77378bc90cea2905579fc40cb2011ec (diff)
downloadvis-editorconfig-ec49068a1a6ac9509946456cfb1753f79618cf30.tar.gz
Revert "Allow setting arbitrary options via 'vis_*' keys"
This reverts commit 556370f35d4486ad01d549a7f6ff24618a547908. It looks like nobody is interested in using 'vis_*' keys. If that changes, drop me a note to revert the revert. Until then, not having this feature seems to be the cleaner way.
Diffstat (limited to 'edconf.lua')
-rw-r--r--edconf.lua6
1 files changed, 2 insertions, 4 deletions
diff --git a/edconf.lua b/edconf.lua
index f956704..da3c32d 100644
--- a/edconf.lua
+++ b/edconf.lua
@@ -178,11 +178,9 @@ function ec_iter(p)
end
function ec_set_values(file)
- if file.path then
+ if path then
for name, value in ec_iter(file.path) do
- if name:sub(1,4) == "vis_" then
- vis_set(name:sub(5,#name), value)
- elseif OPTIONS[name] then
+ if OPTIONS[name] then
OPTIONS[name](value, file)
end
end