From 868b84199ef321834022c19d9ba1d1d04cb77570 Mon Sep 17 00:00:00 2001 From: Christian Höltje Date: Tue, 14 Mar 2017 01:00:12 -0400 Subject: eval: Add stdpath() method (#5297) Adds the :stdpath method for fetching XDG standard directories. Fixes #5297 --- src/nvim/os/stdpaths.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/nvim/os/stdpaths.c') diff --git a/src/nvim/os/stdpaths.c b/src/nvim/os/stdpaths.c index a41fb7c621..866a005228 100644 --- a/src/nvim/os/stdpaths.c +++ b/src/nvim/os/stdpaths.c @@ -88,7 +88,7 @@ char *stdpaths_get_xdg_var(const XDGVarType idx) /// /// In WIN32 get_xdg_home(kXDGDataHome) returns `{xdg_directory}/nvim-data` to /// avoid storing configuration and data files in the same path. -static char *get_xdg_home(const XDGVarType idx) +char *get_xdg_home(const XDGVarType idx) FUNC_ATTR_WARN_UNUSED_RESULT { char *dir = stdpaths_get_xdg_var(idx); -- cgit