Patch 8.2.3025
Problem:    Not enough tests for quickfix end_col and end_lnum.
Solution:   Add a few more test cases. (Shane-XB-Qian, closes #8409)
Files:      src/testdir/test_quickfix.vim


*** ../vim-8.2.3024/src/testdir/test_quickfix.vim       2021-06-19 
20:45:07.353511358 +0200
--- src/testdir/test_quickfix.vim       2021-06-20 16:28:18.285086794 +0200
***************
*** 5366,5372 ****
    call setqflist(['bb'], 'a')
    call assert_equal(1, line('$'))
    call assert_equal(['Xfile1|10| aa'], getline(1, '$'))
!   call assert_equal([{'lnum': 10, 'end_lnum': 0, 'bufnr': bufnr('Xfile1'), 
'col': 0, 'end_col': 0, 'pattern': '', 'valid': 1, 'vcol': 0, 'nr': -1, 'type': 
'', 'module': '', 'text': 'aa'}], getqflist())
    cclose
  endfunc
  
--- 5366,5407 ----
    call setqflist(['bb'], 'a')
    call assert_equal(1, line('$'))
    call assert_equal(['Xfile1|10| aa'], getline(1, '$'))
!   call assert_equal([{'lnum': 10                    , 'end_lnum': 0    , 
'bufnr': bufnr('Xfile1') , 'col': 0   , 'end_col': 0    , 'pattern': '' , 
'valid': 1 , 'vcol': 0 , 'nr': -1 , 'type': '' , 'module': '' , 'text': 'aa'}] 
, getqflist())
! 
!   call setqflist([{'lnum': 10                                          , 
'bufnr': bufnr('Xfile1') , 'col': 0                     , 'pattern': '' , 
'valid': 1 , 'vcol': 0 , 'nr': -1 , 'type': '' , 'module': '' , 'text': 'aa'}] 
, 'r')
!   call assert_equal(1                               , line('$'))
!   call assert_equal(['Xfile1|10| aa']               , getline(1        , '$'))
!   call assert_equal([{'lnum': 10                    , 'end_lnum': 0    , 
'bufnr': bufnr('Xfile1') , 'col': 0   , 'end_col': 0    , 'pattern': '' , 
'valid': 1 , 'vcol': 0 , 'nr': -1 , 'type': '' , 'module': '' , 'text': 'aa'}] 
, getqflist())
! 
!   call setqflist([{'lnum': 10                       , 'end_lnum': 0    , 
'bufnr': bufnr('Xfile1') , 'col': 0   , 'end_col': 0    , 'pattern': '' , 
'valid': 1 , 'vcol': 0 , 'nr': -1 , 'type': '' , 'module': '' , 'text': 'aa'}] 
, 'r')
!   call assert_equal(1                               , line('$'))
!   call assert_equal(['Xfile1|10| aa']               , getline(1        , '$'))
!   call assert_equal([{'lnum': 10                    , 'end_lnum': 0    , 
'bufnr': bufnr('Xfile1') , 'col': 0   , 'end_col': 0    , 'pattern': '' , 
'valid': 1 , 'vcol': 0 , 'nr': -1 , 'type': '' , 'module': '' , 'text': 'aa'}] 
, getqflist())
! 
!   call setqflist([{'lnum': 10                       , 'end_lnum': -123 , 
'bufnr': bufnr('Xfile1') , 'col': 0   , 'end_col': -456 , 'pattern': '' , 
'valid': 1 , 'vcol': 0 , 'nr': -1 , 'type': '' , 'module': '' , 'text': 'aa'}] 
, 'r')
!   call assert_equal(1                               , line('$'))
!   call assert_equal(['Xfile1|10| aa']               , getline(1        , '$'))
!   call assert_equal([{'lnum': 10                    , 'end_lnum': -123 , 
'bufnr': bufnr('Xfile1') , 'col': 0   , 'end_col': -456 , 'pattern': '' , 
'valid': 1 , 'vcol': 0 , 'nr': -1 , 'type': '' , 'module': '' , 'text': 'aa'}] 
, getqflist())
! 
!   call setqflist([{'lnum': 10                       , 'end_lnum': -123 , 
'bufnr': bufnr('Xfile1') , 'col': 666 , 'end_col': 0    , 'pattern': '' , 
'valid': 1 , 'vcol': 0 , 'nr': -1 , 'type': '' , 'module': '' , 'text': 'aa'}] 
, 'r')
!   call assert_equal(1                               , line('$'))
!   call assert_equal(['Xfile1|10 col 666| aa']       , getline(1        , '$'))
!   call assert_equal([{'lnum': 10                    , 'end_lnum': -123 , 
'bufnr': bufnr('Xfile1') , 'col': 666 , 'end_col': 0    , 'pattern': '' , 
'valid': 1 , 'vcol': 0 , 'nr': -1 , 'type': '' , 'module': '' , 'text': 'aa'}] 
, getqflist())
! 
!   call setqflist([{'lnum': 10                       , 'end_lnum': -123 , 
'bufnr': bufnr('Xfile1') , 'col': 666 , 'end_col': -456 , 'pattern': '' , 
'valid': 1 , 'vcol': 0 , 'nr': -1 , 'type': '' , 'module': '' , 'text': 'aa'}] 
, 'r')
!   call assert_equal(1                               , line('$'))
!   call assert_equal(['Xfile1|10 col 666| aa']       , getline(1        , '$'))
!   call assert_equal([{'lnum': 10                    , 'end_lnum': -123 , 
'bufnr': bufnr('Xfile1') , 'col': 666 , 'end_col': -456 , 'pattern': '' , 
'valid': 1 , 'vcol': 0 , 'nr': -1 , 'type': '' , 'module': '' , 'text': 'aa'}] 
, getqflist())
! 
!   call setqflist([{'lnum': 10                       , 'end_lnum': -123 , 
'bufnr': bufnr('Xfile1') , 'col': 666 , 'end_col': 222  , 'pattern': '' , 
'valid': 1 , 'vcol': 0 , 'nr': -1 , 'type': '' , 'module': '' , 'text': 'aa'}] 
, 'r')
!   call assert_equal(1                               , line('$'))
!   call assert_equal(['Xfile1|10 col 666-222| aa']   , getline(1        , '$'))
!   call assert_equal([{'lnum': 10                    , 'end_lnum': -123 , 
'bufnr': bufnr('Xfile1') , 'col': 666 , 'end_col': 222  , 'pattern': '' , 
'valid': 1 , 'vcol': 0 , 'nr': -1 , 'type': '' , 'module': '' , 'text': 'aa'}] 
, getqflist())
! 
!   call setqflist([{'lnum': 10                       , 'end_lnum': 6 , 
'bufnr': bufnr('Xfile1') , 'col': 666 , 'end_col': 222  , 'pattern': '' , 
'valid': 1 , 'vcol': 0 , 'nr': -1 , 'type': '' , 'module': '' , 'text': 'aa'}] 
, 'r')
!   call assert_equal(1                               , line('$'))
!   call assert_equal(['Xfile1|10-6 col 666-222| aa'] , getline(1        , '$'))
!   call assert_equal([{'lnum': 10                    , 'end_lnum': 6 , 
'bufnr': bufnr('Xfile1') , 'col': 666 , 'end_col': 222  , 'pattern': '' , 
'valid': 1 , 'vcol': 0 , 'nr': -1 , 'type': '' , 'module': '' , 'text': 'aa'}] 
, getqflist())
    cclose
  endfunc
  
*** ../vim-8.2.3024/src/version.c       2021-06-20 15:03:12.215348932 +0200
--- src/version.c       2021-06-20 16:29:24.908747174 +0200
***************
*** 757,758 ****
--- 757,760 ----
  {   /* Add new patch number below this line */
+ /**/
+     3025,
  /**/

-- 
Anyone who is capable of getting themselves made President should on no
account be allowed to do the job.
                -- Douglas Adams, "The Hitchhiker's Guide to the Galaxy"

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///                                                                      \\\
\\\        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/202106201431.15KEVXAp348933%40masaka.moolenaar.net.

Raspunde prin e-mail lui