aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/quickfix.c
diff options
context:
space:
mode:
authorJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2020-11-14 14:31:13 -0500
committerJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2020-11-14 17:23:48 -0500
commit78c380f947445d327d33fa068c91a3bb2370c35c (patch)
tree2c2c815def3aab6e27f8cf2d98403f466c3d797d /src/nvim/quickfix.c
parent27d630926cab78511075159012ce6ac920d8747e (diff)
downloadrneovim-78c380f947445d327d33fa068c91a3bb2370c35c.tar.gz
rneovim-78c380f947445d327d33fa068c91a3bb2370c35c.tar.bz2
rneovim-78c380f947445d327d33fa068c91a3bb2370c35c.zip
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) https://github.com/vim/vim/commit/2ce7790348dab9cbfcc5d02c8258d0dd7ecacf95 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) https://github.com/vim/vim/commit/47c5ea44b975adca00eaacecee5c4108996178d9 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) https://github.com/vim/vim/commit/8496c9eadbf4ea3bf69e2e01456831eee2bddf0a 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) https://github.com/vim/vim/commit/02764713a715c55e316e2bef5c9ade2fb767ee78 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) https://github.com/vim/vim/commit/6453cc8078af403956d0e8c1849cf5ec0aae86b2
Diffstat (limited to 'src/nvim/quickfix.c')
-rw-r--r--src/nvim/quickfix.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/nvim/quickfix.c b/src/nvim/quickfix.c
index 6ca97c3072..d3ca65c53c 100644
--- a/src/nvim/quickfix.c
+++ b/src/nvim/quickfix.c
@@ -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 {
- qfp = old_last->qf_next;
+ 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) {