aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/misc2.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nvim/misc2.c')
-rw-r--r--src/nvim/misc2.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/nvim/misc2.c b/src/nvim/misc2.c
index 1db6c4193c..c9c3edca71 100644
--- a/src/nvim/misc2.c
+++ b/src/nvim/misc2.c
@@ -362,10 +362,6 @@ int get_real_state(void)
return State;
}
-#if defined(FEAT_SESSION) || defined(MSWIN) || defined(FEAT_GUI_MAC) \
- || ((defined(FEAT_GUI_GTK)) \
- && ( defined(FEAT_WINDOWS) || defined(FEAT_DND)) ) \
- || defined(PROTO)
/*
* Change to a file's directory.
* Caller must call shorten_fnames()!
@@ -379,11 +375,9 @@ int vim_chdirfile(char_u *fname)
*path_tail_with_sep(dir) = NUL;
return os_chdir((char *)dir) == 0 ? OK : FAIL;
}
-#endif
/*
- * Change directory to "new_dir". If FEAT_SEARCHPATH is defined, search
- * 'cdpath' for relative directory names, otherwise just os_chdir().
+ * Change directory to "new_dir". Search 'cdpath' for relative directory names.
*/
int vim_chdir(char_u *new_dir)
{