Mercurial > vim
diff src/buffer.c @ 5302:f6247eaf4e1d v7.4.004
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.
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Wed, 14 Aug 2013 17:11:20 +0200 |
parents | bc4fb0317465 |
children | 7b760cda2bbf |
line wrap: on
line diff
--- a/src/buffer.c +++ b/src/buffer.c @@ -1186,7 +1186,10 @@ do_buffer(action, start, dir, count, for && !(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 /*