diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-07-28 11:56:01 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-07-28 11:56:01 +0100 |
commit | 5f30e26f6946f0d0396499f91fbcfaa9d1f8acf7 (patch) | |
tree | f03f65ea914cec1bec389ca1e51f3bd6612061b4 /src/testdir/test_quickfix.vim | |
parent | f6782732ab4acd02211923fbdccb457dacaf277e (diff) | |
download | vim-git-5f30e26f6946f0d0396499f91fbcfaa9d1f8acf7.tar.gz |
patch 9.0.0097: long quickfix line is truncated for :clistv9.0.0097
Problem: Long quickfix line is truncated for :clist.
Solution: Allocate a buffer if needed.
Diffstat (limited to 'src/testdir/test_quickfix.vim')
-rw-r--r-- | src/testdir/test_quickfix.vim | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/testdir/test_quickfix.vim b/src/testdir/test_quickfix.vim index 2431a46fc..94651af81 100644 --- a/src/testdir/test_quickfix.vim +++ b/src/testdir/test_quickfix.vim @@ -185,6 +185,14 @@ func XlistTests(cchar) \ ' 2 Data.Text:20 col 10 warning 22: ModuleWarning', \ ' 3 Data/Text.hs:30 col 15 warning 33: FileWarning'], l) + " Very long line should be displayed. + let text = 'Line' .. repeat('1234567890', 130) + let lines = ['Xtestfile9:2:9:' .. text] + Xgetexpr lines + + let l = split(execute('Xlist', ''), "\n") + call assert_equal([' 1 Xtestfile9:2 col 9: ' .. text] , l) + " For help entries in the quickfix list, only the filename without directory " should be displayed Xhelpgrep setqflist() |