aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/os/stdpaths.c
diff options
context:
space:
mode:
authorChristian Höltje <docwhat@gerf.org>2017-03-14 01:00:12 -0400
committerJames McCoy <jamessan@jamessan.com>2018-03-29 10:41:04 -0400
commit868b84199ef321834022c19d9ba1d1d04cb77570 (patch)
treef693aa795470590808659eb6674267478745bcfa /src/nvim/os/stdpaths.c
parente54ff10d44a18b59350503accc68811e4a5be29f (diff)
downloadrneovim-868b84199ef321834022c19d9ba1d1d04cb77570.tar.gz
rneovim-868b84199ef321834022c19d9ba1d1d04cb77570.tar.bz2
rneovim-868b84199ef321834022c19d9ba1d1d04cb77570.zip
eval: Add stdpath() method (#5297)
Adds the :stdpath method for fetching XDG standard directories. Fixes #5297
Diffstat (limited to 'src/nvim/os/stdpaths.c')
-rw-r--r--src/nvim/os/stdpaths.c2
1 files changed, 1 insertions, 1 deletions
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);