diff options
author | James Booth <boothj5@gmail.com> | 2013-08-28 21:45:46 +0100 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2013-08-28 21:45:46 +0100 |
commit | 88d4cf6e94980d6e44a0a55c84b3d2b7296b6f9a (patch) | |
tree | 5e46ae9d5426ef9701c405d9e3bd9bd5db712c4e | |
parent | a81d69dc7f2fb8cdeefad2ef605e5242b66b0050 (diff) | |
download | profani-tty-88d4cf6e94980d6e44a0a55c84b3d2b7296b6f9a.tar.gz |
Fixed test for requiring window tidy
-rw-r--r-- | src/ui/windows.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ui/windows.c b/src/ui/windows.c index 0cd53c55..59563a79 100644 --- a/src/ui/windows.c +++ b/src/ui/windows.c @@ -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; } |