Patch 8.1.0734
Problem: The hlsearch state is not stored in a session file.
Solution: Add "nohlsearch" if appropriate. (Jason Franklin)
Files: src/ex_docmd.c, src/testdir/test_mksession.vim
*** ../vim-8.1.0733/src/ex_docmd.c 2019-01-08 22:02:36.044297306 +0100
--- src/ex_docmd.c 2019-01-12 16:26:37.281066688 +0100
***************
*** 10144,10149 ****
--- 10144,10153 ----
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)
*** ../vim-8.1.0733/src/testdir/test_mksession.vim 2018-08-30
14:15:56.858667449 +0200
--- src/testdir/test_mksession.vim 2019-01-12 16:24:14.553959907 +0100
***************
*** 198,203 ****
--- 198,221 ----
call delete('Xtest_mks.out')
endfunc
+ if has('extra_search')
+
+ func Test_mksession_hlsearch()
+ set hlsearch
+ mksession! Xtest_mks.out
+ nohlsearch
+ source Xtest_mks.out
+ call assert_equal(1, v:hlsearch, 'session should restore search
highlighting state')
+ nohlsearch
+ mksession! Xtest_mks.out
+ source Xtest_mks.out
+ call assert_equal(0, v:hlsearch, 'session should restore search
highlighting state')
+ call delete('Xtest_mks.out')
+ endfunc
+
+ endif
+
+
func Test_mksession_blank_windows()
split
split
*** ../vim-8.1.0733/src/version.c 2019-01-12 16:10:47.415360504 +0100
--- src/version.c 2019-01-12 16:27:53.592581589 +0100
***************
*** 797,798 ****
--- 797,800 ----
{ /* Add new patch number below this line */
+ /**/
+ 734,
/**/
--
hundred-and-one symptoms of being an internet addict:
174. You know what a listserv is.
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.