aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir/test_makeencoding.vim
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-10-13 10:13:17 +0800
committerzeertzjq <zeertzjq@outlook.com>2022-10-13 10:20:42 +0800
commitcd1e0bb87dc71d51d9e8da097f5822c37e909335 (patch)
tree14f0615af4add0379696e1a5d4a2c5901501d92a /src/nvim/testdir/test_makeencoding.vim
parent73bdfdd382bf2addd7816571608db6911448b48a (diff)
downloadrneovim-cd1e0bb87dc71d51d9e8da097f5822c37e909335.tar.gz
rneovim-cd1e0bb87dc71d51d9e8da097f5822c37e909335.tar.bz2
rneovim-cd1e0bb87dc71d51d9e8da097f5822c37e909335.zip
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 vim/vim#9839) https://github.com/vim/vim/commit/9c9be05b17ececb1515a2f41a4dedbf848d3d8b6 Omit Test_helpgrep_vim9_restore_cpo(). Cherry-pick test_quickfix.vim change from patch 8.2.0644.
Diffstat (limited to 'src/nvim/testdir/test_makeencoding.vim')
-rw-r--r--src/nvim/testdir/test_makeencoding.vim16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_makeencoding.vim b/src/nvim/testdir/test_makeencoding.vim
index c53c07d991..e297bdc228 100644
--- a/src/nvim/testdir/test_makeencoding.vim
+++ b/src/nvim/testdir/test_makeencoding.vim
@@ -107,3 +107,19 @@ func Test_make()
lclose
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