diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-01-12 16:29:30 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-01-12 16:29:30 +0100 |
commit | e3c74d249ac36404d8af25f74baf335d143b30e3 (patch) | |
tree | 239c4aa1e52da86d1d87cb163e2b4ad518c7752b /src/ex_docmd.c | |
parent | 2be7cb73f66cf69659195d9a8ad4beaa359f2865 (diff) | |
download | vim-git-e3c74d249ac36404d8af25f74baf335d143b30e3.tar.gz |
patch 8.1.0734: the hlsearch state is not stored in a session filev8.1.0734
Problem: The hlsearch state is not stored in a session file.
Solution: Add "nohlsearch" if appropriate. (Jason Franklin)
Diffstat (limited to 'src/ex_docmd.c')
-rw-r--r-- | src/ex_docmd.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ex_docmd.c b/src/ex_docmd.c index 354cc119b..7dc619820 100644 --- a/src/ex_docmd.c +++ b/src/ex_docmd.c @@ -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) |