fixup! vim-patch:8.1.0734: the hlsearch state is not stored in a session file (#13547)

This commit is contained in:
Jan Edmund Lazo
2021-05-22 15:33:13 -04:00
parent 0cbe748da3
commit 8e5439182b

View File

@@ -939,9 +939,6 @@ void ex_mkrc(exarg_T *eap)
&& (*flagp & SSOP_OPTIONS))) { && (*flagp & SSOP_OPTIONS))) {
failed |= (makemap(fd, NULL) == FAIL failed |= (makemap(fd, NULL) == FAIL
|| makeset(fd, OPT_GLOBAL, false) == FAIL); || makeset(fd, OPT_GLOBAL, false) == FAIL);
if (p_hls && fprintf(fd, "%s", "set hlsearch\n") < 0) {
failed = true;
}
} }
if (!failed && view_session) { if (!failed && view_session) {
@@ -1002,6 +999,9 @@ void ex_mkrc(exarg_T *eap)
< 0) { < 0) {
failed = true; failed = true;
} }
if (p_hls && fprintf(fd, "%s", "set hlsearch\n") < 0) {
failed = true;
}
if (no_hlsearch && fprintf(fd, "%s", "nohlsearch\n") < 0) { if (no_hlsearch && fprintf(fd, "%s", "nohlsearch\n") < 0) {
failed = true; failed = true;
} }