annotate src/testdir/test_match_conceal.in @ 8259:99a70c3b902f v7.4.1422

commit https://github.com/vim/vim/commit/46c85439c966d7ed39fb3d711d4d6c61ac964647 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Feb 26 11:17:46 2016 +0100 patch 7.4.1422 Problem: Error when reading fails uses wrong errno. Keeping channel open after job stops results in test failing. Solution: Move the error up. Add ch_job_killed.
author Christian Brabandt <cb@256bit.org>
date Fri, 26 Feb 2016 11:30:05 +0100
parents 1efa7c2b9368
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
6947
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
1 Test for matchadd() and conceal feature
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
2
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
3 STARTTEST
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
4 :so small.vim
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
5 :if !has("conceal") | e! test.ok | w! test.out | qa! | endif
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
6 :set term=ansi
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
7 :so mbyte.vim
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
8 :if &enc !=? 'utf-8'|:e! test.ok|:w! test.out|qa!|endif
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
9 :10new|:vsp|:vert resize 20
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
10 :put =\"\#\ This\ is\ a\ Test\"
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
11 :norm! mazt
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
12 :fu! ScreenChar(width, lines)
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
13 : let c=''
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
14 : for j in range(1,a:lines)
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
15 : for i in range(1,a:width)
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
16 : let c.=nr2char(screenchar(j, i))
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
17 : endfor
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
18 : let c.="\n"
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
19 : endfor
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
20 : return c
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
21 :endfu
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
22 :fu! ScreenAttr(line, pos, eval)
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
23 : let g:attr=[]
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
24 : for col in a:pos
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
25 : call add(g:attr, screenattr(a:line,col))
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
26 : endfor
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
27 : " In case all values are zero, probably the terminal
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
28 : " isn't set correctly, so catch that case
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
29 : let null = (eval(join(g:attr, '+')) == 0)
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
30 : let str=substitute(a:eval, '\d\+', 'g:attr[&]', 'g')
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
31 : if null || eval(str)
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
32 : :let g:attr_test="OK: ". str
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
33 : else
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
34 : :let g:attr_test="FAILED: ".str
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
35 : :let g:attr_test.="\n". join(g:attr, ' ')
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
36 : :let g:attr_test.="\n TERM: ". &term
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
37 : endif
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
38 :endfu
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
39 :fu! DoRecordScreen()
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
40 : wincmd l
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
41 : $put =printf(\"\n%s\", g:test)
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
42 : $put =g:line
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
43 : $put =g:attr_test
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
44 : wincmd p
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
45 :endfu
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
46 :let g:test ="Test 1: simple addmatch()"
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
47 :call matchadd('Conceal', '\%2l ')
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
48 :redraw!
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
49 :let line=ScreenChar(winwidth(0),1)
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
50 :call ScreenAttr(1,[1,2,7,10,12,16], "0!=1 && 1==2 && 1==3 && 1==4 && 0==5")
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
51 :call DoRecordScreen()
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
52 :
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
53 :let g:test ="Test 2: simple addmatch() and conceal (should be: #XThisXisXaXTest)"
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
54 :norm! 'azt
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
55 :call clearmatches()
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
56 :syntax on
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
57 :set concealcursor=n conceallevel=1
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
58 :call matchadd('Conceal', '\%2l ', 10, -1, {'conceal': 'X'})
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
59 :redraw!
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
60 :let line=ScreenChar(winwidth(0),1)
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
61 :call ScreenAttr(1,[1,2,7,10,12,16], "0!=1 && 1==2 && 1==3 && 1==4 && 0==5")
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
62 :call DoRecordScreen()
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
63 :
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
64 :let g:test ="Test 3: addmatch() and conceallevel=3 (should be: #ThisisaTest)"
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
65 :norm! 'azt
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
66 :set conceallevel=3
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
67 :call clearmatches()
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
68 :call matchadd('Conceal', '\%2l ', 10, -1, {'conceal': 'X'})
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
69 :redraw!
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
70 :let line=ScreenChar(winwidth(0),1)
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
71 :call ScreenAttr(1,[1,2,7,10,12,16], "0==1 && 1==2 && 1==3 && 1==4 && 0!=5")
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
72 :call DoRecordScreen()
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
73 :
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
74 :let g:test ="Test 4: more match() (should be: #Thisisa Test)"
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
75 :norm! 'azt
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
76 :call matchadd('ErrorMsg', '\%2l Test', 20, -1, {'conceal': 'X'})
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
77 :redraw!
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
78 :let line=ScreenChar(winwidth(0),1)
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
79 :call ScreenAttr(1,[1,2,7,10,12,16], "0==1 && 1==2 && 0!=3 && 3==4 && 0!=5 && 3!=5")
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
80 :call DoRecordScreen()
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
81 :
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
82 :let g:test ="Test 5/1: default conceal char (should be: # This is a Test)"
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
83 :norm! 'azt
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
84 :call clearmatches()
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
85 :set conceallevel=1
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
86 :call matchadd('Conceal', '\%2l ', 10, -1, {})
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
87 :redraw!
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
88 :let line=ScreenChar(winwidth(0),1)
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
89 :call ScreenAttr(1,[1,2,7,10,12,16], "0!=1 && 1==2 && 1==3 && 1==4 && 0==5")
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
90 :call DoRecordScreen()
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
91 :let g:test ="Test 5/2: default conceal char (should be: #+This+is+a+Test)"
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
92 :norm! 'azt
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
93 :set listchars=conceal:+
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
94 :let line=ScreenChar(winwidth(0),1)
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
95 :call ScreenAttr(1,[1,2,7,10,12,16], "0!=1 && 1==2 && 1==3 && 1==4 && 0==5")
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
96 :call DoRecordScreen()
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
97 :set listchars&vim
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
98 :
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
99 :let g:test ="Test 6/1: syn and match conceal (should be: #ZThisZisZaZTest)"
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
100 :norm! 'azt
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
101 :call clearmatches()
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
102 :set conceallevel=1
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
103 :call matchadd('Conceal', '\%2l ', 10, -1, {'conceal': 'Z'})
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
104 :syn match MyConceal /\%2l / conceal containedin=ALL cchar=*
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
105 :redraw!
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
106 :let line=ScreenChar(winwidth(0),1)
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
107 :call ScreenAttr(1,[1,2,7,10,12,16], "0!=1 && 1==2 && 1==3 && 1==4 && 0==5")
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
108 :call DoRecordScreen()
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
109 :let g:test ="Test 6/2: syn and match conceal (should be: #*This*is*a*Test)"
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
110 :norm! 'azt
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
111 :call clearmatches()
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
112 :let line=ScreenChar(winwidth(0),1)
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
113 :call ScreenAttr(1,[1,2,7,10,12,16], "0!=1 && 1==2 && 1==3 && 1==4 && 0==5")
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
114 :call DoRecordScreen()
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
115 :
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
116 :let g:test ="Test 7/1: clear matches"
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
117 :norm! 'azt
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
118 :syn on
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
119 :call matchadd('Conceal', '\%2l ', 10, -1, {'conceal': 'Z'})
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
120 :let a=getmatches()
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
121 :call clearmatches()
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
122 :redraw!
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
123 :let line=ScreenChar(winwidth(0),1)
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
124 :call ScreenAttr(1,[1,2,7,10,12,16], "0==1 && 0==2 && 0==3 && 0==4 && 0==5")
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
125 :call DoRecordScreen()
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
126 :$put =a
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
127 :call setmatches(a)
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
128 :norm! 'azt
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
129 :let g:test ="Test 7/2: reset match using setmatches()"
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
130 :norm! 'azt
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
131 :let line=ScreenChar(winwidth(0),1)
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
132 :call ScreenAttr(1,[1,2,7,10,12,16], "0!=1 && 1==2 && 1==3 && 1==4 && 0==5")
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
133 :call DoRecordScreen()
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
134 :
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
135 :let g:test ="Test 8: using matchaddpos() (should be #Pis a Test"
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
136 :norm! 'azt
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
137 :call clearmatches()
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
138 :call matchaddpos('Conceal', [[2,2,6]], 10, -1, {'conceal': 'P'})
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
139 :let a=getmatches()
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
140 :redraw!
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
141 :let line=ScreenChar(winwidth(0),1)
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
142 :call ScreenAttr(1,[1,2,7,10,12,16], "0!=1 && 1!=2 && 0==2 && 0==3 && 0!=4 && 0!=5 && 4==5")
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
143 :call DoRecordScreen()
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
144 :$put =a
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
145 :
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
146 :let g:test ="Test 9: match using multibyte conceal char (should be: #ˑThisˑisˑaˑTest)"
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
147 :norm! 'azt
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
148 :call clearmatches()
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
149 :call matchadd('Conceal', '\%2l ', 20, -1, {'conceal': "\u02d1"})
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
150 :redraw!
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
151 :let line=ScreenChar(winwidth(0),1)
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
152 :call ScreenAttr(1,[1,2,7,10,12,16], "0!=1 && 1==2 && 1==3 && 1==4 && 0==5")
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
153 :call DoRecordScreen()
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
154 :
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
155 :"sleep 10
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
156 :%w! test.out
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
157 :qa!
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
158 ENDTEST
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
159 dummy text