mirror of
https://github.com/neovim/neovim.git
synced 2025-09-15 15:58:17 +00:00
Additional FOR_ALL_WINDOWS usage
This commit is contained in:
@@ -4610,19 +4610,19 @@ prepare_tagpreview (
|
||||
bool undo_sync /* sync undo when leaving the window */
|
||||
)
|
||||
{
|
||||
win_T *wp;
|
||||
|
||||
|
||||
/*
|
||||
* If there is already a preview window open, use that one.
|
||||
*/
|
||||
if (!curwin->w_p_pvw) {
|
||||
for (wp = firstwin; wp != NULL; wp = wp->w_next)
|
||||
if (wp->w_p_pvw)
|
||||
bool found_win = false;
|
||||
FOR_ALL_WINDOWS(wp) {
|
||||
if (wp->w_p_pvw) {
|
||||
win_enter(wp, undo_sync);
|
||||
found_win = true;
|
||||
break;
|
||||
if (wp != NULL)
|
||||
win_enter(wp, undo_sync);
|
||||
else {
|
||||
}
|
||||
}
|
||||
if (!found_win) {
|
||||
/*
|
||||
* There is no preview window open yet. Create one.
|
||||
*/
|
||||
|
Reference in New Issue
Block a user