1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-12-04 14:46:46 -05:00

Fixed test for requiring window tidy

This commit is contained in:
James Booth 2013-08-28 21:45:46 +01:00
parent a81d69dc7f
commit 88d4cf6e94

View File

@ -319,8 +319,8 @@ wins_tidy(void)
// find first free num TODO - Will sort again
int next_available = get_next_available_win_num(keys);
// found gap (next available after last window)
if (cmp_win_num(GINT_TO_POINTER(next_available), GINT_TO_POINTER(last_num)) > 0) {
// found gap (next available before last window)
if (cmp_win_num(GINT_TO_POINTER(next_available), GINT_TO_POINTER(last_num)) < 0) {
tidy_required = TRUE;
}