summaryrefslogtreecommitdiffstats
path: root/src/change.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/change.c')
-rw-r--r--src/change.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/change.c b/src/change.c
index 51ffe28524..71ad9eaf87 100644
--- a/src/change.c
+++ b/src/change.c
@@ -100,11 +100,7 @@ changed(void)
// Create a swap file if that is wanted.
// Don't do this for "nofile" and "nowrite" buffer types.
- if (curbuf->b_may_swap
-#ifdef FEAT_QUICKFIX
- && !bt_dontwrite(curbuf)
-#endif
- )
+ if (curbuf->b_may_swap && !bt_dontwrite(curbuf))
{
int save_need_wait_return = need_wait_return;