Mercurial > vim
comparison src/testdir/test_quickfix.vim @ 22870:69b48d2822ec v8.2.1982
patch 8.2.1982: quickfix window now updated when adding invalid entries
Commit: https://github.com/vim/vim/commit/2ce7790348dab9cbfcc5d02c8258d0dd7ecacf95
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Nov 14 13:15:24 2020 +0100
patch 8.2.1982: quickfix window now updated when adding invalid entries
Problem: Quickfix window now updated when adding invalid entries.
Solution: Update the quickfix buffer properly. (Yegappan Lakshmanan, closes
#7291, closes #7271)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 14 Nov 2020 13:30:05 +0100 |
parents | c8a4ad051d23 |
children | db1bc1ab5ec8 |
comparison
equal
deleted
inserted
replaced
22869:6996926dd538 | 22870:69b48d2822ec |
---|---|
5143 augroup END | 5143 augroup END |
5144 unlet g:BufNum | 5144 unlet g:BufNum |
5145 %bw! | 5145 %bw! |
5146 endfunc | 5146 endfunc |
5147 | 5147 |
5148 " Test for adding an invalid entry with the quickfix window open and making | |
5149 " sure that the window contents are not changed | |
5150 func Test_add_invalid_entry_with_qf_window() | |
5151 call setqflist([], 'f') | |
5152 cexpr "Xfile1:10:aa" | |
5153 copen | |
5154 call setqflist(['bb'], 'a') | |
5155 call assert_equal(1, line('$')) | |
5156 call assert_equal(['Xfile1|10| aa'], getline(1, '$')) | |
5157 call assert_equal([{'lnum': 10, 'bufnr': bufnr('Xfile1'), 'col': 0, 'pattern': '', 'valid': 1, 'vcol': 0, 'nr': -1, 'type': '', 'module': '', 'text': 'aa'}], getqflist()) | |
5158 cclose | |
5159 endfunc | |
5160 | |
5148 " vim: shiftwidth=2 sts=2 expandtab | 5161 " vim: shiftwidth=2 sts=2 expandtab |