mirror of
https://github.com/neovim/neovim.git
synced 2025-09-13 06:48:17 +00:00
cleanup
This commit is contained in:
@@ -15740,15 +15740,15 @@ static void f_stdpath(typval_T *argvars, typval_T *rettv, FunPtr fptr)
|
||||
return; // Type error; errmsg already given.
|
||||
}
|
||||
|
||||
if (strcmp(p, "config") == 0) {
|
||||
if (strequal(p, "config")) {
|
||||
rettv->vval.v_string = (char_u *)get_xdg_home(kXDGConfigHome);
|
||||
} else if (strcmp(p, "data") == 0) {
|
||||
} else if (strequal(p, "data")) {
|
||||
rettv->vval.v_string = (char_u *)get_xdg_home(kXDGDataHome);
|
||||
} else if (strcmp(p, "cache") == 0) {
|
||||
} else if (strequal(p, "cache")) {
|
||||
rettv->vval.v_string = (char_u *)get_xdg_home(kXDGCacheHome);
|
||||
} else if (strcmp(p, "config_dirs") == 0) {
|
||||
} else if (strequal(p, "config_dirs")) {
|
||||
get_xdg_var_list(kXDGConfigDirs, rettv);
|
||||
} else if (strcmp(p, "data_dirs") == 0) {
|
||||
} else if (strequal(p, "data_dirs")) {
|
||||
get_xdg_var_list(kXDGDataDirs, rettv);
|
||||
} else {
|
||||
EMSG2(_("E6100: \"%s\" is not a valid stdpath"), p);
|
||||
|
Reference in New Issue
Block a user