comparison src/testdir/test_search_stat.vim @ 16696:b1756c303066 v8.1.1350

patch 8.1.1350: "W" for wrapping not shown when more than 99 matches commit https://github.com/vim/vim/commit/dc6855af974f2ef553aceee619fadcb858e25d39 Author: Bram Moolenaar <Bram@vim.org> Date: Sat May 18 19:26:29 2019 +0200 patch 8.1.1350: "W" for wrapping not shown when more than 99 matches Problem: "W" for wrapping not shown when more than 99 matches. Solution: Adjust check for length. (Masato Nishihata, closes https://github.com/vim/vim/issues/4388)
author Bram Moolenaar <Bram@vim.org>
date Sat, 18 May 2019 19:30:10 +0200
parents 2c2f5f0173c1
children 73ff6357da5b
comparison
equal deleted inserted replaced
16695:bb8d2ba5f265 16696:b1756c303066
38 let @/ = '.' 38 let @/ = '.'
39 let pat = escape(@/, '()*?'). '\s\+' 39 let pat = escape(@/, '()*?'). '\s\+'
40 let g:a = execute(':unsilent :norm! n') 40 let g:a = execute(':unsilent :norm! n')
41 let stat = '\[>99/>99\]' 41 let stat = '\[>99/>99\]'
42 call assert_match(pat .. stat, g:a) 42 call assert_match(pat .. stat, g:a)
43 call cursor(line('$'), 1)
44 let g:a = execute(':unsilent :norm! n')
45 let stat = '\[1/>99\] W'
46 call assert_match(pat .. stat, g:a)
43 47
44 " 5) Many matches 48 " 5) Many matches
45 call cursor(1, 1) 49 call cursor(1, 1)
46 let g:a = execute(':unsilent :norm! n') 50 let g:a = execute(':unsilent :norm! n')
47 let stat = '\[2/>99\]' 51 let stat = '\[2/>99\]'
52 call assert_match(pat .. stat, g:a)
53 call cursor(1, 1)
54 let g:a = execute(':unsilent :norm! N')
55 let stat = '\[>99/>99\] W'
48 call assert_match(pat .. stat, g:a) 56 call assert_match(pat .. stat, g:a)
49 57
50 " 6) right-left 58 " 6) right-left
51 if exists("+rightleft") 59 if exists("+rightleft")
52 set rl 60 set rl