comparison src/testdir/test_popupwin.vim @ 17022:79c3a52fdb07 v8.1.1511

patch 8.1.1511: matches in a popup window are not displayed properly commit https://github.com/vim/vim/commit/ac2450a9a863f02a5e749f2b7058157cbf76edf8 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jun 9 18:04:28 2019 +0200 patch 8.1.1511: matches in a popup window are not displayed properly Problem: Matches in a popup window are not displayed properly. Solution: Do display matches in a popup window. (closes https://github.com/vim/vim/issues/4517)
author Bram Moolenaar <Bram@vim.org>
date Sun, 09 Jun 2019 18:15:05 +0200
parents 2ec0f953ec3f
children 905e1b154058
comparison
equal deleted inserted replaced
17021:d2b0c88a5128 17022:79c3a52fdb07
184 call VerifyScreenDump(buf, 'Test_popupwin_11', {}) 184 call VerifyScreenDump(buf, 'Test_popupwin_11', {})
185 185
186 " clean up 186 " clean up
187 call StopVimInTerminal(buf) 187 call StopVimInTerminal(buf)
188 call delete('XtestPopup') 188 call delete('XtestPopup')
189 endfunc
190
191 func Test_popup_with_matches()
192 if !CanRunVimInTerminal()
193 throw 'Skipped: cannot make screendumps'
194 endif
195 let lines =<< trim END
196 call setline(1, ['111 222 333', '444 555 666'])
197 let winid = popup_create([
198 \ '111 222 333',
199 \ '444 555 666',
200 \], {'line': 3, 'col': 10, 'border': []})
201 set hlsearch
202 /666
203 call matchadd('ErrorMsg', '111')
204 call matchadd('ErrorMsg', '444')
205 call win_execute(winid, "call matchadd('ErrorMsg', '111')")
206 call win_execute(winid, "call matchadd('ErrorMsg', '555')")
207 END
208 call writefile(lines, 'XtestPopupMatches')
209 let buf = RunVimInTerminal('-S XtestPopupMatches', {'rows': 10})
210 call VerifyScreenDump(buf, 'Test_popupwin_matches', {})
211
212 " clean up
213 call StopVimInTerminal(buf)
214 call delete('XtestPopupMatches')
189 endfunc 215 endfunc
190 216
191 func Test_popup_all_corners() 217 func Test_popup_all_corners()
192 if !CanRunVimInTerminal() 218 if !CanRunVimInTerminal()
193 throw 'Skipped: cannot make screendumps' 219 throw 'Skipped: cannot make screendumps'