summaryrefslogtreecommitdiffstats
path: root/src/buffer.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-04-07 12:04:51 +0200
committerBram Moolenaar <Bram@vim.org>2019-04-07 12:04:51 +0200
commit39803d82dbb215d2eea9fcd6cf2961b71515a438 (patch)
tree280abaf998686e393c45a11eaebeefcc30c15681 /src/buffer.c
parent08499f5a4d24cb7298b9730a22b2f84f2207c4d0 (diff)
patch 8.1.1134: buffer for quickfix window is reused for another filev8.1.1134
Problem: Buffer for quickfix window is reused for another file. Solution: Don't reuse the quickfx buffer. (Yegappan Lakshmanan)
Diffstat (limited to 'src/buffer.c')
-rw-r--r--src/buffer.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/buffer.c b/src/buffer.c
index b9b44886c4..187a8a6482 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -1853,6 +1853,7 @@ curbuf_reusable(void)
&& curbuf->b_ffname == NULL
&& curbuf->b_nwindows <= 1
&& (curbuf->b_ml.ml_mfp == NULL || BUFEMPTY())
+ && !bt_quickfix(curbuf)
&& !curbufIsChanged());
}