Mercurial > vim
comparison src/ex_getln.c @ 3365:9ccdc4a69d8f v7.3.449
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.
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Wed, 22 Feb 2012 14:58:37 +0100 |
parents | 7b17a38eb223 |
children | 791baa7b35e1 |
comparison
equal
deleted
inserted
replaced
3364:e8d5db3a6d4f | 3365:9ccdc4a69d8f |
---|---|
6441 win_close(wp, TRUE); | 6441 win_close(wp, TRUE); |
6442 | 6442 |
6443 /* win_close() may have already wiped the buffer when 'bh' is | 6443 /* win_close() may have already wiped the buffer when 'bh' is |
6444 * set to 'wipe' */ | 6444 * set to 'wipe' */ |
6445 if (buf_valid(bp)) | 6445 if (buf_valid(bp)) |
6446 close_buffer(NULL, bp, DOBUF_WIPE); | 6446 close_buffer(NULL, bp, DOBUF_WIPE, FALSE); |
6447 | 6447 |
6448 /* Restore window sizes. */ | 6448 /* Restore window sizes. */ |
6449 win_size_restore(&winsizes); | 6449 win_size_restore(&winsizes); |
6450 | 6450 |
6451 # ifdef FEAT_AUTOCMD | 6451 # ifdef FEAT_AUTOCMD |