From 8e5439182b0c62c433b0696d85e033ffc7404e0c Mon Sep 17 00:00:00 2001 From: Jan Edmund Lazo Date: Sat, 22 May 2021 15:33:13 -0400 Subject: fixup! vim-patch:8.1.0734: the hlsearch state is not stored in a session file (#13547) --- src/nvim/ex_session.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/nvim/ex_session.c b/src/nvim/ex_session.c index 9e4e69e124..c22c1f428d 100644 --- a/src/nvim/ex_session.c +++ b/src/nvim/ex_session.c @@ -939,9 +939,6 @@ void ex_mkrc(exarg_T *eap) && (*flagp & SSOP_OPTIONS))) { failed |= (makemap(fd, NULL) == FAIL || makeset(fd, OPT_GLOBAL, false) == FAIL); - if (p_hls && fprintf(fd, "%s", "set hlsearch\n") < 0) { - failed = true; - } } if (!failed && view_session) { @@ -1002,6 +999,9 @@ void ex_mkrc(exarg_T *eap) < 0) { failed = true; } + if (p_hls && fprintf(fd, "%s", "set hlsearch\n") < 0) { + failed = true; + } if (no_hlsearch && fprintf(fd, "%s", "nohlsearch\n") < 0) { failed = true; } -- cgit