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/fileio.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/fileio.c')
-rw-r--r-- | src/fileio.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/fileio.c b/src/fileio.c index b3018467ce..659878eb91 100644 --- a/src/fileio.c +++ b/src/fileio.c @@ -684,15 +684,13 @@ readfile( #endif } -#if defined(HAS_SWAP_EXISTS_ACTION) - /* If "Quit" selected at ATTENTION dialog, don't load the file */ + // If "Quit" selected at ATTENTION dialog, don't load the file if (swap_exists_action == SEA_QUIT) { if (!read_buffer && !read_stdin) close(fd); return FAIL; } -#endif ++no_wait_return; /* don't wait for return yet */ |