aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2020-08-15 22:19:06 -0400
committerGitHub <noreply@github.com>2020-08-15 19:19:06 -0700
commitc219d3eec400b074525c528473fe9aa9d5ca06aa (patch)
tree4217881c8461698073724137b3c3ee782fa5a64e /src
parent37aa9c9c94551ffed8ba5721d5b8ea8e172d7377 (diff)
downloadrneovim-c219d3eec400b074525c528473fe9aa9d5ca06aa.tar.gz
rneovim-c219d3eec400b074525c528473fe9aa9d5ca06aa.tar.bz2
rneovim-c219d3eec400b074525c528473fe9aa9d5ca06aa.zip
defaults: sessionoptions+=unix,slash #12760
Since 1c3ca4f18fdc, 2c1d12d0beda, #7836, the "unix" and "slash" behavior of 'sessionoptions'/'viewoptions' is always enabled, and the flags are just ignored. There is no reason for that behavior to be configurable. Co-authored-by: Justin M. Keyes <justinkz@gmail.com>
Diffstat (limited to 'src')
-rw-r--r--src/nvim/ex_session.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/nvim/ex_session.c b/src/nvim/ex_session.c
index 1b797c6168..6b00b986dc 100644
--- a/src/nvim/ex_session.c
+++ b/src/nvim/ex_session.c
@@ -493,7 +493,8 @@ static int put_view(
/// Writes commands for restoring the current buffers, for :mksession.
///
-/// Legacy 'sessionoptions' flags SSOP_UNIX, SSOP_SLASH are always enabled.
+/// Legacy 'sessionoptions'/'viewoptions' flags SSOP_UNIX, SSOP_SLASH are
+/// always enabled.
///
/// @param dirnow Current directory name
/// @param fd File descriptor to write to
@@ -822,9 +823,9 @@ void ex_loadview(exarg_T *eap)
/// ":mkexrc", ":mkvimrc", ":mkview", ":mksession".
///
-/// Legacy 'sessionoptions' flags SSOP_UNIX, SSOP_SLASH are always enabled.
-/// - SSOP_UNIX: line-endings are always LF
-/// - SSOP_SLASH: filenames are always written with "/" slash
+/// Legacy 'sessionoptions'/'viewoptions' flags are always enabled:
+/// - SSOP_UNIX: line-endings are LF
+/// - SSOP_SLASH: filenames are written with "/" slash
void ex_mkrc(exarg_T *eap)
{
FILE *fd;