diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-08-25 15:11:15 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-08-25 15:11:15 +0100 |
commit | 6d4b2f54df5d533eb0794331f38445a6ca5d3a3f (patch) | |
tree | 0a6011c47bb9cf12806cb0484016ce6f071fc361 /src/ex_cmds.c | |
parent | 2e6dcbc4450c98bd12faace5d77a65f2afddae44 (diff) |
patch 9.0.0263: too many #ifdefsv9.0.0263
Problem: Too many #ifdefs.
Solution: Make some functions always available.
Diffstat (limited to 'src/ex_cmds.c')
-rw-r--r-- | src/ex_cmds.c | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/src/ex_cmds.c b/src/ex_cmds.c index 87a7b50e06..01518ff64d 100644 --- a/src/ex_cmds.c +++ b/src/ex_cmds.c @@ -1677,12 +1677,7 @@ append_redir( (char *)opt, (char *)fname); } else - vim_snprintf((char *)end, (size_t)(buflen - (end - buf)), -#ifdef FEAT_QUICKFIX - " %s %s", -#else - " %s%s", // " > %s" causes problems on Amiga -#endif + vim_snprintf((char *)end, (size_t)(buflen - (end - buf)), " %s %s", (char *)opt, (char *)fname); } @@ -1947,11 +1942,7 @@ do_write(exarg_T *eap) * and a file name is required. * "nofile" and "nowrite" buffers cannot be written implicitly either. */ - if (!other && ( -#ifdef FEAT_QUICKFIX - bt_dontwrite_msg(curbuf) || -#endif - check_fname() == FAIL + if (!other && (bt_dontwrite_msg(curbuf) || check_fname() == FAIL #ifdef UNIX || check_writable(curbuf->b_ffname) == FAIL #endif |