mirror of
https://github.com/neovim/neovim.git
synced 2025-11-26 04:00:45 +00:00
vim-patch:8.1.1231: asking about existing swap file unnecessarily
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 vim/vim#1237)
67cf86bfff
N/A:
vim-patch:8.1.1232
vim-patch:8.1.1233
vim-patch:8.1.1236
This commit is contained in:
@@ -1520,10 +1520,11 @@ static void create_windows(mparm_T *parmp)
|
||||
dorewind = FALSE;
|
||||
curbuf = curwin->w_buffer;
|
||||
if (curbuf->b_ml.ml_mfp == NULL) {
|
||||
/* Set 'foldlevel' to 'foldlevelstart' if it's not negative. */
|
||||
if (p_fdls >= 0)
|
||||
// Set 'foldlevel' to 'foldlevelstart' if it's not negative..
|
||||
if (p_fdls >= 0) {
|
||||
curwin->w_p_fdl = p_fdls;
|
||||
/* When getting the ATTENTION prompt here, use a dialog */
|
||||
}
|
||||
// When getting the ATTENTION prompt here, use a dialog.
|
||||
swap_exists_action = SEA_DIALOG;
|
||||
set_buflisted(TRUE);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user