forked from aniani/vim
patch 8.1.0734: the hlsearch state is not stored in a session file
Problem: The hlsearch state is not stored in a session file. Solution: Add "nohlsearch" if appropriate. (Jason Franklin)
This commit is contained in:
@@ -10144,6 +10144,10 @@ ex_mkrc(
|
||||
if (put_line(fd, "let &so = s:so_save | let &siso = s:siso_save")
|
||||
== FAIL)
|
||||
failed = TRUE;
|
||||
# ifdef FEAT_SEARCH_EXTRA
|
||||
if (no_hlsearch && put_line(fd, "nohlsearch") == FAIL)
|
||||
failed = TRUE;
|
||||
# endif
|
||||
if (put_line(fd, "doautoall SessionLoadPost") == FAIL)
|
||||
failed = TRUE;
|
||||
if (eap->cmdidx == CMD_mksession)
|
||||
|
Reference in New Issue
Block a user