summaryrefslogtreecommitdiff
path: root/src/ex_cmds.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2018-03-29 16:04:08 +0200
committerBram Moolenaar <Bram@vim.org>2018-03-29 16:04:08 +0200
commit0c72fe4ed8430db41f43c5878e6ee60265dc49e9 (patch)
tree1ed985dcd639fe0d976103599009ff835cd7043a /src/ex_cmds.c
parentcd43effecab02c6c28b1c4a3a14f91b8c3f26c0d (diff)
downloadvim-0c72fe4ed8430db41f43c5878e6ee60265dc49e9.zip
patch 8.0.1650: too many #ifdefs
Problem: Too many #ifdefs. Solution: Graduate FEAT_LISTCMDS, no reason to leave out buffer commands.
Diffstat (limited to 'src/ex_cmds.c')
-rw-r--r--src/ex_cmds.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/src/ex_cmds.c b/src/ex_cmds.c
index 6845be57d..e13d34cc0 100644
--- a/src/ex_cmds.c
+++ b/src/ex_cmds.c
@@ -3745,10 +3745,8 @@ do_ecmd(
fname_case(sfname, 0); /* set correct case for sfname */
#endif
-#ifdef FEAT_LISTCMDS
if ((flags & ECMD_ADDBUF) && (ffname == NULL || *ffname == NUL))
goto theend;
-#endif
if (ffname == NULL)
other_file = TRUE;
@@ -3830,9 +3828,7 @@ do_ecmd(
*/
if (other_file)
{
-#ifdef FEAT_LISTCMDS
if (!(flags & ECMD_ADDBUF))
-#endif
{
if (!cmdmod.keepalt)
curwin->w_alt_fnum = curbuf->b_fnum;
@@ -3844,7 +3840,6 @@ do_ecmd(
buf = buflist_findnr(fnum);
else
{
-#ifdef FEAT_LISTCMDS
if (flags & ECMD_ADDBUF)
{
linenr_T tlnum = 1L;
@@ -3858,7 +3853,6 @@ do_ecmd(
(void)buflist_new(ffname, sfname, tlnum, BLN_LISTED);
goto theend;
}
-#endif
buf = buflist_new(ffname, sfname, 0L,
BLN_CURBUF | ((flags & ECMD_SET_HELP) ? 0 : BLN_LISTED));
@@ -4016,11 +4010,7 @@ do_ecmd(
}
else /* !other_file */
{
- if (
-#ifdef FEAT_LISTCMDS
- (flags & ECMD_ADDBUF) ||
-#endif
- check_fname() == FAIL)
+ if ((flags & ECMD_ADDBUF) || check_fname() == FAIL)
goto theend;
oldbuf = (flags & ECMD_OLDBUF);