Mercurial > vim
comparison src/testdir/test_quickfix.vim @ 29511:3778f9415b92 v9.0.0097
patch 9.0.0097: long quickfix line is truncated for :clist
Commit: https://github.com/vim/vim/commit/5f30e26f6946f0d0396499f91fbcfaa9d1f8acf7
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Jul 28 11:56:01 2022 +0100
patch 9.0.0097: long quickfix line is truncated for :clist
Problem: Long quickfix line is truncated for :clist.
Solution: Allocate a buffer if needed.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 28 Jul 2022 13:00:08 +0200 |
parents | 4ad168b282bd |
children | 256418aa72ed |
comparison
equal
deleted
inserted
replaced
29510:0acbd5c55267 | 29511:3778f9415b92 |
---|---|
183 let l = split(execute('Xlist', ""), "\n") | 183 let l = split(execute('Xlist', ""), "\n") |
184 call assert_equal([' 1 Data.Text:10 col 5 warning 11: ModuleWarning', | 184 call assert_equal([' 1 Data.Text:10 col 5 warning 11: ModuleWarning', |
185 \ ' 2 Data.Text:20 col 10 warning 22: ModuleWarning', | 185 \ ' 2 Data.Text:20 col 10 warning 22: ModuleWarning', |
186 \ ' 3 Data/Text.hs:30 col 15 warning 33: FileWarning'], l) | 186 \ ' 3 Data/Text.hs:30 col 15 warning 33: FileWarning'], l) |
187 | 187 |
188 " Very long line should be displayed. | |
189 let text = 'Line' .. repeat('1234567890', 130) | |
190 let lines = ['Xtestfile9:2:9:' .. text] | |
191 Xgetexpr lines | |
192 | |
193 let l = split(execute('Xlist', ''), "\n") | |
194 call assert_equal([' 1 Xtestfile9:2 col 9: ' .. text] , l) | |
195 | |
188 " For help entries in the quickfix list, only the filename without directory | 196 " For help entries in the quickfix list, only the filename without directory |
189 " should be displayed | 197 " should be displayed |
190 Xhelpgrep setqflist() | 198 Xhelpgrep setqflist() |
191 let l = split(execute('Xlist 1', ''), "\n") | 199 let l = split(execute('Xlist 1', ''), "\n") |
192 call assert_match('^ 1 [^\\/]\{-}:', l[0]) | 200 call assert_match('^ 1 [^\\/]\{-}:', l[0]) |