vim-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
            vim/vim#7291, closes vim/vim#7271)
2ce7790348

N/A patches for version.c:

vim-patch:8.2.1979: "term_opencmd" option of term_start() is truncated

Problem:    "term_opencmd" option of term_start() is truncated. (Sergey
            Vlasov)
Solution:   Allocate the buffer to hold the command. (closes vim/vim#7284)
47c5ea44b9

vim-patch:8.2.1981: MinGW: parallel compilation might fail

Problem:    MinGW: parallel compilation might fail.
Solution:   Add dependencies on $(OUTDIR). (Masamichi Abe, closes vim/vim#7287)
8496c9eadb

vim-patch:8.2.1985: crash when closing terminal popup with <Cmd> mapping

Problem:    Crash when closing terminal popup with <Cmd> mapping.
Solution:   Check b_term is not NULL. (closes vim/vim#7294)
02764713a7

vim-patch:8.2.1987: MS-Windows: Win32.mak is no longer needed

Problem:    MS-Windows: Win32.mak is no longer needed.
Solution:   Do not include Win32.mak. (Jason McHugh, closes vim/vim#7290)
6453cc8078
This commit is contained in:
Jan Edmund Lazo 2020-11-14 14:31:13 -05:00
parent 27d630926c
commit 78c380f947
No known key found for this signature in database
GPG Key ID: 64915E6E9F735B15
2 changed files with 19 additions and 2 deletions

View File

@ -3975,11 +3975,15 @@ static void qf_fill_buffer(qf_list_T *qfl, buf_T *buf, qfline_T *old_last)
*dirname = NUL;
// Add one line for each error
if (old_last == NULL || old_last->qf_next == NULL) {
if (old_last == NULL) {
qfp = qfl->qf_start;
lnum = 0;
} else {
if (old_last->qf_next != NULL) {
qfp = old_last->qf_next;
} else {
qfp = old_last;
}
lnum = buf->b_ml.ml_line_count;
}
while (lnum < qfl->qf_count) {

View File

@ -4410,4 +4410,17 @@ func Test_search_in_dirstack()
call delete('Xtestdir', 'rf')
endfunc
" Test for adding an invalid entry with the quickfix window open and making
" sure that the window contents are not changed
func Test_add_invalid_entry_with_qf_window()
call setqflist([], 'f')
cexpr "Xfile1:10:aa"
copen
call setqflist(['bb'], 'a')
call assert_equal(1, line('$'))
call assert_equal(['Xfile1|10| aa'], getline(1, '$'))
call assert_equal([{'lnum': 10, 'bufnr': bufnr('Xfile1'), 'col': 0, 'pattern': '', 'valid': 1, 'vcol': 0, 'nr': -1, 'type': '', 'module': '', 'text': 'aa'}], getqflist())
cclose
endfunc
" vim: shiftwidth=2 sts=2 expandtab