forked from aniani/vim
patch 8.2.1420: test 49 is old style
Problem: Test 49 is old style.
Solution: Convert remaining parts to new style. Remove obsolete items.
(Yegappan Lakshmanan, closes #6683)
This commit is contained in:
@@ -5040,4 +5040,27 @@ func Test_lhelpgrep_from_help_window()
|
||||
new | only!
|
||||
endfunc
|
||||
|
||||
" Test for the crash fixed by 7.3.715
|
||||
func Test_setloclist_crash()
|
||||
%bw!
|
||||
let g:BufNum = bufnr()
|
||||
augroup QF_Test
|
||||
au!
|
||||
au BufUnload * call setloclist(0, [{'bufnr':g:BufNum, 'lnum':1, 'col':1, 'text': 'tango down'}])
|
||||
augroup END
|
||||
|
||||
try
|
||||
lvimgrep /.*/ *.mak
|
||||
catch /E926:/
|
||||
endtry
|
||||
call assert_equal('tango down', getloclist(0, {'items' : 0}).items[0].text)
|
||||
call assert_equal(1, getloclist(0, {'size' : 0}).size)
|
||||
|
||||
augroup QF_Test
|
||||
au!
|
||||
augroup END
|
||||
unlet g:BufNum
|
||||
%bw!
|
||||
endfunc
|
||||
|
||||
" vim: shiftwidth=2 sts=2 expandtab
|
||||
|
||||
Reference in New Issue
Block a user