commit | c93df6b0752cf1d11b0c880748821f881c1c4d08 | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Wed Aug 14 17:11:20 2013 +0200 |
committer | Bram Moolenaar <Bram@vim.org> | Wed Aug 14 17:11:20 2013 +0200 |
tree | cdcab747169425a0bbed744d689fb1a40f0a98b0 | |
parent | ebefd997bbc2ec79fd33145fd88126cfd1b87fa3 [diff] [blame] |
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.
diff --git a/src/buffer.c b/src/buffer.c index 238af14..34273d8 100644 --- a/src/buffer.c +++ b/src/buffer.c
@@ -1186,7 +1186,10 @@ && !(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 /*