forked from aniani/vim
patch 8.2.4462: not enough testing for quickfix code
Problem: Not enough testing for quickfix code.
Solution: Add more tests. Fix uncovered problem. (Yegappan Lakshmanan,
closes #9839)
This commit is contained in:
committed by
Bram Moolenaar
parent
3c620b0c03
commit
9c9be05b17
@@ -103,4 +103,18 @@ func Test_make()
|
||||
endfor
|
||||
endfunc
|
||||
|
||||
" Test for an error file with a long line that needs an encoding conversion
|
||||
func Test_longline_conversion()
|
||||
new
|
||||
call setline(1, ['Xfile:10:' .. repeat("\xe0", 2000)])
|
||||
write ++enc=latin1 Xerr.out
|
||||
bw!
|
||||
set errorformat&
|
||||
set makeencoding=latin1
|
||||
cfile Xerr.out
|
||||
call assert_equal(repeat("\u00e0", 2000), getqflist()[0].text)
|
||||
call delete('Xerr.out')
|
||||
set makeencoding&
|
||||
endfunc
|
||||
|
||||
" vim: shiftwidth=2 sts=2 expandtab
|
||||
|
||||
Reference in New Issue
Block a user