vis
a vi-like editor based on Plan 9's structural regular expressions
git clone https://9o.is/git/vis.git
commit 2fd0feb4f8cea23802560b8c6c8d9f616b9f6e11 parent 9016f9b37b7667d23abfd3e36def461b17aeabaa Author: Adrian Room <ingolemo@gmail.com> Date: Wed, 4 May 2016 09:45:31 +0100 Fixed bug, use $XDG_CONFIG_HOME correctly Vis should look for files in `$XDG_CONFIG_HOME/vis`, not just `$XDG_CONFIG_HOME` directly. Diffstat:
| M | vis-lua.c | | | 3 | ++- |
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/vis-lua.c b/vis-lua.c @@ -1120,7 +1120,8 @@ void vis_lua_init(Vis *vis) { const char *xdg_config = getenv("XDG_CONFIG_HOME"); if (xdg_config) { - vis_lua_path_add(vis, xdg_config); + snprintf(path, sizeof path, "%s/vis", xdg_config); + vis_lua_path_add(vis, path); } else if (home && *home) { snprintf(path, sizeof path, "%s/.config/vis", home); vis_lua_path_add(vis, path);