Convert FOR_ALL_WINDOWS to use a locally declared pointer

This commit is contained in:
Wayne Rowcliffe
2014-08-20 18:35:07 -05:00
parent 3f5482d325
commit fe99930c46
12 changed files with 138 additions and 154 deletions

View File

@@ -1677,20 +1677,19 @@ static int last_window(void)
* Return TRUE if there is only one window other than "aucmd_win" in the
* current tab page.
*/
int one_window(void)
bool one_window(void)
{
win_T *wp;
int seen_one = FALSE;
bool seen_one = false;
FOR_ALL_WINDOWS(wp)
{
FOR_ALL_WINDOWS(wp) {
if (wp != aucmd_win) {
if (seen_one)
return FALSE;
seen_one = TRUE;
if (seen_one) {
return false;
}
seen_one = true;
}
}
return TRUE;
return true;
}
/*