diff options
author | Bram Moolenaar <Bram@vim.org> | 2012-02-22 14:58:37 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2012-02-22 14:58:37 +0100 |
commit | 42ec656524db254001caee8feb58d26f67b52fbe (patch) | |
tree | 1ca4411bcc3addd4cd05a3ed629193c6ca04409c /src/ex_cmds.c | |
parent | fb7df7be2f7c80428a3379010ca701689c85aa12 (diff) | |
download | vim-42ec656524db254001caee8feb58d26f67b52fbe.zip |
updated for version 7.3.449
Problem: Crash when a BufWinLeave autocommand closes the only other window.
(Daniel Hunt)
Solution: Abort closing a buffer when it becomes the only one.
Diffstat (limited to 'src/ex_cmds.c')
-rw-r--r-- | src/ex_cmds.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ex_cmds.c b/src/ex_cmds.c index 519655beb..644c32ba2 100644 --- a/src/ex_cmds.c +++ b/src/ex_cmds.c @@ -3387,7 +3387,7 @@ do_ecmd(fnum, ffname, sfname, eap, newlnum, flags, oldwin) /* close the link to the current buffer */ u_sync(FALSE); close_buffer(oldwin, curbuf, - (flags & ECMD_HIDE) ? 0 : DOBUF_UNLOAD); + (flags & ECMD_HIDE) ? 0 : DOBUF_UNLOAD, FALSE); #ifdef FEAT_AUTOCMD /* Autocommands may open a new window and leave oldwin open |