mirror of
https://github.com/neovim/neovim.git
synced 2025-10-12 04:46:10 +00:00
eval: Add stdpath() method (#5297)
Adds the :stdpath method for fetching XDG standard directories. Fixes #5297
This commit is contained in:

committed by
James McCoy

parent
e54ff10d44
commit
868b84199e
@@ -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);
|
||||
|
Reference in New Issue
Block a user