0
0
mirror of https://github.com/vim/vim.git synced 2025-09-25 03:54:15 -04:00

updated for version 7.4.004

Problem:    When closing a window fails ":bwipe" may hang.
Solution:   Let win_close() return FAIL and break out of the loop.
This commit is contained in:
Bram Moolenaar
2013-08-14 17:11:20 +02:00
parent ebefd997bb
commit c93df6b075
4 changed files with 21 additions and 14 deletions

View File

@@ -1186,7 +1186,10 @@ do_buffer(action, start, dir, count, forceit)
&& !(curwin->w_closing || curwin->w_buffer->b_closing)
# endif
&& (firstwin != lastwin || first_tabpage->tp_next != NULL))
win_close(curwin, FALSE);
{
if (win_close(curwin, FALSE) == FAIL)
break;
}
#endif
/*