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

@@ -73,7 +73,6 @@ void pum_display(pumitem_T *array, int size, int selected, bool array_changed)
int above_row;
int below_row;
int redo_count = 0;
win_T *pvwin;
if (!pum_is_visible) {
// To keep the code simple, we only allow changing the
@@ -126,8 +125,10 @@ redo:
kind_width = 0;
extra_width = 0;
FOR_ALL_WINDOWS(pvwin) {
if (pvwin->w_p_pvw) {
win_T *pvwin = NULL;
FOR_ALL_WINDOWS_IN_TAB(wp, curtab) {
if (wp->w_p_pvw) {
pvwin = wp;
break;
}
}