eval: Add stdpath() method (#5297)

Adds the :stdpath method for fetching XDG standard directories.

Fixes #5297
This commit is contained in:
Christian Höltje
2017-03-14 01:00:12 -04:00
committed by James McCoy
parent e54ff10d44
commit 868b84199e
6 changed files with 341 additions and 1 deletions

View File

@@ -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);