Mirror of the Vim source from https://github.com/vim/vim
Révision | fd205e78e163f388e6cd4cbba062c4f2c04b2fb5 (tree) |
---|---|
l'heure | 2021-06-20 23:45:03 |
Auteur | Bram Moolenaar <Bram@vim....> |
Commiter | Bram Moolenaar |
patch 8.2.3025: not enough tests for quickfix end_col and end_lnum
Commit: https://github.com/vim/vim/commit/0d5e1ec37fbe75e18acba6f650c59bf91063108c
Author: shane.xb.qian <shane.qian@foxmail.com>
Date: Sun Jun 20 16:31:00 2021 +0200
@@ -5366,7 +5366,42 @@ | ||
5366 | 5366 | call setqflist(['bb'], 'a') |
5367 | 5367 | call assert_equal(1, line('$')) |
5368 | 5368 | call assert_equal(['Xfile1|10| aa'], getline(1, '$')) |
5369 | - 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()) | |
5369 | + 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()) | |
5370 | + | |
5371 | + call setqflist([{'lnum': 10 , 'bufnr': bufnr('Xfile1') , 'col': 0 , 'pattern': '' , 'valid': 1 , 'vcol': 0 , 'nr': -1 , 'type': '' , 'module': '' , 'text': 'aa'}] , 'r') | |
5372 | + call assert_equal(1 , line('$')) | |
5373 | + call assert_equal(['Xfile1|10| aa'] , getline(1 , '$')) | |
5374 | + 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()) | |
5375 | + | |
5376 | + 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') | |
5377 | + call assert_equal(1 , line('$')) | |
5378 | + call assert_equal(['Xfile1|10| aa'] , getline(1 , '$')) | |
5379 | + 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()) | |
5380 | + | |
5381 | + 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') | |
5382 | + call assert_equal(1 , line('$')) | |
5383 | + call assert_equal(['Xfile1|10| aa'] , getline(1 , '$')) | |
5384 | + 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()) | |
5385 | + | |
5386 | + 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') | |
5387 | + call assert_equal(1 , line('$')) | |
5388 | + call assert_equal(['Xfile1|10 col 666| aa'] , getline(1 , '$')) | |
5389 | + 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()) | |
5390 | + | |
5391 | + 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') | |
5392 | + call assert_equal(1 , line('$')) | |
5393 | + call assert_equal(['Xfile1|10 col 666| aa'] , getline(1 , '$')) | |
5394 | + 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()) | |
5395 | + | |
5396 | + 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') | |
5397 | + call assert_equal(1 , line('$')) | |
5398 | + call assert_equal(['Xfile1|10 col 666-222| aa'] , getline(1 , '$')) | |
5399 | + 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()) | |
5400 | + | |
5401 | + 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') | |
5402 | + call assert_equal(1 , line('$')) | |
5403 | + call assert_equal(['Xfile1|10-6 col 666-222| aa'] , getline(1 , '$')) | |
5404 | + 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()) | |
5370 | 5405 | cclose |
5371 | 5406 | endfunc |
5372 | 5407 |
@@ -756,6 +756,8 @@ | ||
756 | 756 | static int included_patches[] = |
757 | 757 | { /* Add new patch number below this line */ |
758 | 758 | /**/ |
759 | + 3025, | |
760 | +/**/ | |
759 | 761 | 3024, |
760 | 762 | /**/ |
761 | 763 | 3023, |