aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ex_cmds.c
diff options
context:
space:
mode:
authorMichael Reed <m.reed@mykolab.com>2015-01-14 00:46:32 -0500
committerMichael Reed <m.reed@mykolab.com>2015-01-14 15:08:19 -0500
commitcd8e91b87ebda1850c22ea91068b679f7e8af3a4 (patch)
treea4772d0994b54ab9850a196f8590cc4638971680 /src/nvim/ex_cmds.c
parentd86ebc7afb0f80a597d1361f54e838ce4689e36c (diff)
downloadrneovim-cd8e91b87ebda1850c22ea91068b679f7e8af3a4.tar.gz
rneovim-cd8e91b87ebda1850c22ea91068b679f7e8af3a4.tar.bz2
rneovim-cd8e91b87ebda1850c22ea91068b679f7e8af3a4.zip
Macro cleanup: HAS_SWAP_EXISTS_ACTION
Neovim always ships with all features[0], so this serves no purpose. Besides, this always evaluated to true. [0]: https://github.com/neovim/neovim/wiki/Differences-from-vim
Diffstat (limited to 'src/nvim/ex_cmds.c')
-rw-r--r--src/nvim/ex_cmds.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/nvim/ex_cmds.c b/src/nvim/ex_cmds.c
index 2094975602..763a2d6212 100644
--- a/src/nvim/ex_cmds.c
+++ b/src/nvim/ex_cmds.c
@@ -2978,9 +2978,7 @@ do_ecmd (
lnum = curwin->w_cursor.lnum;
topline = curwin->w_topline;
if (!oldbuf) { /* need to read the file */
-#if defined(HAS_SWAP_EXISTS_ACTION)
swap_exists_action = SEA_DIALOG;
-#endif
curbuf->b_flags |= BF_CHECK_RO; /* set/reset 'ro' flag */
/*
@@ -2989,11 +2987,9 @@ do_ecmd (
if (should_abort(open_buffer(FALSE, eap, readfile_flags)))
retval = FAIL;
-#if defined(HAS_SWAP_EXISTS_ACTION)
if (swap_exists_action == SEA_QUIT)
retval = FAIL;
handle_swap_exists(old_curbuf);
-#endif
} else {
/* Read the modelines, but only to set window-local options. Any
* buffer-local options have already been set and may have been