summaryrefslogtreecommitdiff
path: root/src/ex_getln.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2012-02-22 14:58:37 +0100
committerBram Moolenaar <Bram@vim.org>2012-02-22 14:58:37 +0100
commit42ec656524db254001caee8feb58d26f67b52fbe (patch)
tree1ca4411bcc3addd4cd05a3ed629193c6ca04409c /src/ex_getln.c
parentfb7df7be2f7c80428a3379010ca701689c85aa12 (diff)
downloadvim-git-42ec656524db254001caee8feb58d26f67b52fbe.tar.gz
updated for version 7.3.449v7.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_getln.c')
-rw-r--r--src/ex_getln.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ex_getln.c b/src/ex_getln.c
index 80a39cc09..1f5c873da 100644
--- a/src/ex_getln.c
+++ b/src/ex_getln.c
@@ -6443,7 +6443,7 @@ ex_window()
/* win_close() may have already wiped the buffer when 'bh' is
* set to 'wipe' */
if (buf_valid(bp))
- close_buffer(NULL, bp, DOBUF_WIPE);
+ close_buffer(NULL, bp, DOBUF_WIPE, FALSE);
/* Restore window sizes. */
win_size_restore(&winsizes);