diff options
author | Bram Moolenaar <Bram@vim.org> | 2005-12-16 21:49:31 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2005-12-16 21:49:31 +0000 |
commit | 12033fb4bfa58447ba89104ff671a076e756b8e6 (patch) | |
tree | 3a109c25124eea7e67e2b2a6a02db9db18bb7a2c /src/buffer.c | |
parent | bca84a12bdbb4bb33e9ba32bfe320abbf54ae5fb (diff) |
updated for version 7.0171
Diffstat (limited to 'src/buffer.c')
-rw-r--r-- | src/buffer.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/buffer.c b/src/buffer.c index 0c1915b4a4..f252489c29 100644 --- a/src/buffer.c +++ b/src/buffer.c @@ -681,6 +681,7 @@ goto_buffer(eap, start, dir, count) /* Quitting means closing the split window, nothing else. */ win_close(curwin, TRUE); swap_exists_action = SEA_NONE; + swap_exists_did_quit = TRUE; # if defined(FEAT_AUTOCMD) && defined(FEAT_EVAL) /* Restore the error/interrupt/exception state if not discarded by a @@ -719,6 +720,7 @@ handle_swap_exists(old_curbuf) * buffer. If that buffer is gone or the same as the current one, * open a new, empty buffer. */ swap_exists_action = SEA_NONE; /* don't want it again */ + swap_exists_did_quit = TRUE; close_buffer(curwin, curbuf, DOBUF_UNLOAD); if (!buf_valid(old_curbuf) || old_curbuf == curbuf) old_curbuf = buflist_new(NULL, NULL, 1L, BLN_CURBUF | BLN_LISTED); @@ -4402,6 +4404,7 @@ ex_buffer_all(eap) win_close(curwin, TRUE); --open_wins; swap_exists_action = SEA_NONE; + swap_exists_did_quit = TRUE; # if defined(FEAT_AUTOCMD) && defined(FEAT_EVAL) /* Restore the error/interrupt/exception state if not |