aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2021-05-22 15:33:13 -0400
committerJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2021-05-22 15:36:48 -0400
commit8e5439182b0c62c433b0696d85e033ffc7404e0c (patch)
tree37c723328f413f7ac7e265398ed70361c8263344
parent0cbe748da34dbbd8c4db4914c9f87c500640c267 (diff)
downloadrneovim-8e5439182b0c62c433b0696d85e033ffc7404e0c.tar.gz
rneovim-8e5439182b0c62c433b0696d85e033ffc7404e0c.tar.bz2
rneovim-8e5439182b0c62c433b0696d85e033ffc7404e0c.zip
fixup! vim-patch:8.1.0734: the hlsearch state is not stored in a session file (#13547)
-rw-r--r--src/nvim/ex_session.c6
1 files changed, 3 insertions, 3 deletions
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;
}