summaryrefslogtreecommitdiffstats
path: root/src/bufwrite.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2022-08-25 15:11:15 +0100
committerBram Moolenaar <Bram@vim.org>2022-08-25 15:11:15 +0100
commit6d4b2f54df5d533eb0794331f38445a6ca5d3a3f (patch)
tree0a6011c47bb9cf12806cb0484016ce6f071fc361 /src/bufwrite.c
parent2e6dcbc4450c98bd12faace5d77a65f2afddae44 (diff)
patch 9.0.0263: too many #ifdefsv9.0.0263
Problem: Too many #ifdefs. Solution: Make some functions always available.
Diffstat (limited to 'src/bufwrite.c')
-rw-r--r--src/bufwrite.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/bufwrite.c b/src/bufwrite.c
index d7c3034766..5db8f2983b 100644
--- a/src/bufwrite.c
+++ b/src/bufwrite.c
@@ -742,9 +742,7 @@ buf_write(
&& reset_changed
&& whole
&& buf == curbuf
-#ifdef FEAT_QUICKFIX
&& !bt_nofilename(buf)
-#endif
&& !filtering
&& (!append || vim_strchr(p_cpo, CPO_FNAMEAPP) != NULL)
&& vim_strchr(p_cpo, CPO_FNAMEW) != NULL)
@@ -813,11 +811,9 @@ buf_write(
if (!(did_cmd = apply_autocmds_exarg(EVENT_FILEAPPENDCMD,
sfname, sfname, FALSE, curbuf, eap)))
{
-#ifdef FEAT_QUICKFIX
if (overwriting && bt_nofilename(curbuf))
nofile_err = TRUE;
else
-#endif
apply_autocmds_exarg(EVENT_FILEAPPENDPRE,
sfname, sfname, FALSE, curbuf, eap);
}
@@ -846,11 +842,9 @@ buf_write(
}
else
{
-#ifdef FEAT_QUICKFIX
if (overwriting && bt_nofilename(curbuf))
nofile_err = TRUE;
else
-#endif
apply_autocmds_exarg(EVENT_BUFWRITEPRE,
sfname, sfname, FALSE, curbuf, eap);
}
@@ -860,11 +854,9 @@ buf_write(
if (!(did_cmd = apply_autocmds_exarg(EVENT_FILEWRITECMD,
sfname, sfname, FALSE, curbuf, eap)))
{
-#ifdef FEAT_QUICKFIX
if (overwriting && bt_nofilename(curbuf))
nofile_err = TRUE;
else
-#endif
apply_autocmds_exarg(EVENT_FILEWRITEPRE,
sfname, sfname, FALSE, curbuf, eap);
}