aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrank Seifferth <frankseifferth@posteo.net>2019-10-09 19:06:40 +0100
committerFrank Seifferth <frankseifferth@posteo.net>2021-05-11 19:19:05 +0200
commit1e5306b982cb6fb51799e9652dff7067475d3eb3 (patch)
treea2a3c5fe8af4d3c0f5dff76498919066380b153d
parentbe8ebb90b4c8ecf021f168e995b073a1f624e4cc (diff)
downloadvis-editorconfig-1e5306b982cb6fb51799e9652dff7067475d3eb3.tar.gz
Bugfix for call to ec_set_values in FILE_SAVE_POST hook
Editorconfig tends to complain that the path should be a full path. Adjusting the call to the one specified for the FILE_OPEN hook solves that for me. I'm not sure if this also occurs with editorconfig-core-lua < 0.3.0, though.
-rw-r--r--edconf.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/edconf.lua b/edconf.lua
index 2bab52f..e3fb921 100644
--- a/edconf.lua
+++ b/edconf.lua
@@ -68,5 +68,5 @@ vis.events.subscribe(vis.events.FILE_OPEN, function (file)
end)
vis.events.subscribe(vis.events.FILE_SAVE_POST, function (file, path)
- ec_set_values(path)
+ ec_set_values(file.path)
end)