Mercurial > vim
comparison 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 |
comparison
equal
deleted
inserted
replaced
5301:8c8cdda36022 | 5302:f6247eaf4e1d |
---|---|
1184 while (buf == curbuf | 1184 while (buf == curbuf |
1185 # ifdef FEAT_AUTOCMD | 1185 # ifdef FEAT_AUTOCMD |
1186 && !(curwin->w_closing || curwin->w_buffer->b_closing) | 1186 && !(curwin->w_closing || curwin->w_buffer->b_closing) |
1187 # endif | 1187 # endif |
1188 && (firstwin != lastwin || first_tabpage->tp_next != NULL)) | 1188 && (firstwin != lastwin || first_tabpage->tp_next != NULL)) |
1189 win_close(curwin, FALSE); | 1189 { |
1190 if (win_close(curwin, FALSE) == FAIL) | |
1191 break; | |
1192 } | |
1190 #endif | 1193 #endif |
1191 | 1194 |
1192 /* | 1195 /* |
1193 * If the buffer to be deleted is not the current one, delete it here. | 1196 * If the buffer to be deleted is not the current one, delete it here. |
1194 */ | 1197 */ |