mirror of
https://github.com/neovim/neovim.git
synced 2025-10-07 02:16:31 +00:00
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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user