summaryrefslogtreecommitdiff
path: root/src/quickfix.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/quickfix.c')
-rw-r--r--src/quickfix.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/quickfix.c b/src/quickfix.c
index c25a0be3..b939275a 100644
--- a/src/quickfix.c
+++ b/src/quickfix.c
@@ -1972,13 +1972,15 @@ bt_quickfix(buf)
}
/*
- * Return TRUE if "buf" is a "nofile" buffer.
+ * Return TRUE if "buf" is a "nofile" or "acwrite" buffer.
+ * This means the buffer name is not a file name.
*/
int
bt_nofile(buf)
buf_T *buf;
{
- return (buf->b_p_bt[0] == 'n' && buf->b_p_bt[2] == 'f');
+ return (buf->b_p_bt[0] == 'n' && buf->b_p_bt[2] == 'f')
+ || buf->b_p_bt[0] == 'a';
}
/*