mirror of
https://github.com/neovim/neovim.git
synced 2025-09-12 06:18:16 +00:00
fixup! vim-patch:8.1.0734: the hlsearch state is not stored in a session file (#13547)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user