fixup! vim-patch:8.0.1782: no simple way to label quickfix entries

This commit is contained in:
Jan Edmund Lazo 2019-05-06 22:32:39 -04:00
parent b5539c2044
commit ac1fbc2860

View File

@ -137,6 +137,8 @@ func XlistTests(cchar)
\ ' 5:50 col 25 55: one'], l)
" Test for module names, one needs to explicitly set `'valid':v:true` so
let save_shellslash = &shellslash
set shellslash
call g:Xsetlist([
\ {'lnum':10,'col':5,'type':'W','module':'Data.Text','text':'ModuleWarning','nr':11,'valid':v:true},
\ {'lnum':20,'col':10,'type':'W','module':'Data.Text','filename':'Data/Text.hs','text':'ModuleWarning','nr':22,'valid':v:true},
@ -145,6 +147,7 @@ func XlistTests(cchar)
call assert_equal([' 1 Data.Text:10 col 5 warning 11: ModuleWarning',
\ ' 2 Data.Text:20 col 10 warning 22: ModuleWarning',
\ ' 3 Data/Text.hs:30 col 15 warning 33: FileWarning'], l)
let &shellslash = save_shellslash
" Error cases
call assert_fails('Xlist abc', 'E488:')