diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-04-28 22:25:38 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-04-28 22:25:38 +0200 |
commit | 67cf86bfff5fd5224d557d81cb146f46e33b831c (patch) | |
tree | 3ffaca7f4014f393ceb0216a2ec8fca091019c1c /src/ex_cmds.c | |
parent | afde13b62b8fa25dac4635d5caee8d088b937ee0 (diff) |
patch 8.1.1231: asking about existing swap file unnecessarilyv8.1.1231
Problem: Asking about existing swap file unnecessarily.
Solution: When it is safe, delete the swap file. Remove
HAS_SWAP_EXISTS_ACTION, it is always defined. (closes #1237)
Diffstat (limited to 'src/ex_cmds.c')
-rw-r--r-- | src/ex_cmds.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/ex_cmds.c b/src/ex_cmds.c index 8766c66707..991dc458e2 100644 --- a/src/ex_cmds.c +++ b/src/ex_cmds.c @@ -4258,9 +4258,7 @@ do_ecmd( 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 */ /* @@ -4273,11 +4271,9 @@ do_ecmd( (void)open_buffer(FALSE, eap, readfile_flags); #endif -#if defined(HAS_SWAP_EXISTS_ACTION) if (swap_exists_action == SEA_QUIT) retval = FAIL; handle_swap_exists(&old_curbuf); -#endif } else { |