vim-patch:7.4.2101

Problem:    Looping over windows, buffers and tab pages is inconsistant.
Solution:   Use FOR_ALL_ macros everywhere. (Yegappan Lakshmanan)

2932359000
This commit is contained in:
James McCoy
2017-03-10 16:13:37 -05:00
parent 5674057e3a
commit 564e9dc17f
10 changed files with 51 additions and 35 deletions

View File

@@ -3623,7 +3623,8 @@ set_bool_option (
char_u hash[UNDO_HASH_SIZE];
buf_T *save_curbuf = curbuf;
for (curbuf = firstbuf; curbuf != NULL; curbuf = curbuf->b_next) {
FOR_ALL_BUFFERS(bp) {
curbuf = bp;
/* When 'undofile' is set globally: for every buffer, otherwise
* only for the current buffer: Try to read in the undofile,
* if one exists, the buffer wasn't changed and the buffer was