mirror of
https://github.com/neovim/neovim.git
synced 2025-09-17 16:58:17 +00:00
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
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user