aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/nvim/ex_docmd.c2
-rw-r--r--src/nvim/misc2.c3
2 files changed, 1 insertions, 4 deletions
diff --git a/src/nvim/ex_docmd.c b/src/nvim/ex_docmd.c
index e532e5e97d..f17734eb5e 100644
--- a/src/nvim/ex_docmd.c
+++ b/src/nvim/ex_docmd.c
@@ -7065,7 +7065,7 @@ static void close_redir(void)
}
}
-#if defined(FEAT_SESSION) && defined(USE_CRNL)
+#ifdef USE_CRNL
# define MKSESSION_NL
static int mksession_nl = FALSE; /* use NL only in put_eol() */
#endif
diff --git a/src/nvim/misc2.c b/src/nvim/misc2.c
index 953344bdd5..c9c3edca71 100644
--- a/src/nvim/misc2.c
+++ b/src/nvim/misc2.c
@@ -362,8 +362,6 @@ int get_real_state(void)
return State;
}
-#if defined(FEAT_SESSION) || defined(MSWIN) || defined(FEAT_GUI_MAC) \
- || defined(FEAT_GUI_GTK) || defined(PROTO)
/*
* Change to a file's directory.
* Caller must call shorten_fnames()!
@@ -377,7 +375,6 @@ 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". Search 'cdpath' for relative directory names.