summaryrefslogtreecommitdiff
path: root/src/quickfix.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/quickfix.c')
-rw-r--r--src/quickfix.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/quickfix.c b/src/quickfix.c
index ad07a5b4e..4974cb479 100644
--- a/src/quickfix.c
+++ b/src/quickfix.c
@@ -4473,7 +4473,17 @@ qf_update_buffer(qf_info_T *qi, qfline_T *old_last)
int qf_winid = 0;
if (IS_LL_STACK(qi))
- qf_winid = curwin->w_id;
+ {
+ if (curwin->w_llist == qi)
+ win = curwin;
+ else
+ {
+ win = qf_find_win_with_loclist(qi);
+ if (win == NULL)
+ return;
+ }
+ qf_winid = win->w_id;
+ }
if (old_last == NULL)
// set curwin/curbuf to buf and save a few things