0
0
mirror of https://github.com/vim/vim.git synced 2025-09-26 04:04:07 -04:00

patch 8.2.3163: location list window may open a wrong file

Problem:    Location list window may open a wrong file.
Solution:   Also update the qf_ptr field. (Wei-Chung Wen, closes #8565,
            closes #8566)
This commit is contained in:
Wei-Chung Wen
2021-07-15 13:13:39 +02:00
committed by Bram Moolenaar
parent 1a71d31bf3
commit 1557b16dad
3 changed files with 36 additions and 0 deletions

View File

@@ -3461,6 +3461,7 @@ qf_jump_newwin(qf_info_T *qi,
}
qfl->qf_index = qf_index;
qfl->qf_ptr = qf_ptr;
if (qf_win_pos_update(qi, old_qf_index))
// No need to print the error message if it's visible in the error
// window