Mercurial > vim
comparison src/testdir/test_mksession.vim @ 15452:1c6a708a5fee v8.1.0734
patch 8.1.0734: the hlsearch state is not stored in a session file
commit https://github.com/vim/vim/commit/e3c74d249ac36404d8af25f74baf335d143b30e3
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Jan 12 16:29:30 2019 +0100
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)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 12 Jan 2019 16:30:05 +0100 |
parents | aa48ee3d3d12 |
children | e6d2e41669b8 |
comparison
equal
deleted
inserted
replaced
15451:8ab318043c9f | 15452:1c6a708a5fee |
---|---|
196 call assert_equal(4, tabpagenr('$'), 'session restore should restore number of tabs') | 196 call assert_equal(4, tabpagenr('$'), 'session restore should restore number of tabs') |
197 call assert_equal(3, tabpagenr(), 'session restore should restore the active tab') | 197 call assert_equal(3, tabpagenr(), 'session restore should restore the active tab') |
198 call delete('Xtest_mks.out') | 198 call delete('Xtest_mks.out') |
199 endfunc | 199 endfunc |
200 | 200 |
201 if has('extra_search') | |
202 | |
203 func Test_mksession_hlsearch() | |
204 set hlsearch | |
205 mksession! Xtest_mks.out | |
206 nohlsearch | |
207 source Xtest_mks.out | |
208 call assert_equal(1, v:hlsearch, 'session should restore search highlighting state') | |
209 nohlsearch | |
210 mksession! Xtest_mks.out | |
211 source Xtest_mks.out | |
212 call assert_equal(0, v:hlsearch, 'session should restore search highlighting state') | |
213 call delete('Xtest_mks.out') | |
214 endfunc | |
215 | |
216 endif | |
217 | |
218 | |
201 func Test_mksession_blank_windows() | 219 func Test_mksession_blank_windows() |
202 split | 220 split |
203 split | 221 split |
204 split | 222 split |
205 3 wincmd w | 223 3 wincmd w |