diff options
author | James Booth <boothj5@gmail.com> | 2014-07-08 20:03:19 +0100 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2014-07-08 20:03:19 +0100 |
commit | feaebf59f95bf16017b6fc5a8335f42b40d6c67a (patch) | |
tree | 4c79e1e285a61a08c24098c8ed967b669273d376 /src/ui/windows.c | |
parent | 82d8d81dfb4d12cd6d3698c2ed075b43f2ff691d (diff) | |
parent | 5c28ad76b6c928e71d170b586ea066cd6cd52052 (diff) | |
download | profani-tty-feaebf59f95bf16017b6fc5a8335f42b40d6c67a.tar.gz |
Merge remote-tracking branch 'origin/winbuffers' into winbuffers
Diffstat (limited to 'src/ui/windows.c')
-rw-r--r-- | src/ui/windows.c | 21 |
1 files changed, 8 insertions, 13 deletions
diff --git a/src/ui/windows.c b/src/ui/windows.c index 24d0f4c3..bbee696e 100644 --- a/src/ui/windows.c +++ b/src/ui/windows.c @@ -274,20 +274,15 @@ wins_resize_all(void) int rows, cols; getmaxyx(stdscr, rows, cols); - // only make the pads bigger, to avoid data loss on cropping - if (cols > max_cols) { - max_cols = cols; - - GList *values = g_hash_table_get_values(windows); - GList *curr = values; - - while (curr != NULL) { - ProfWin *window = curr->data; - wresize(window->win, PAD_SIZE, cols); - curr = g_list_next(curr); - } - g_list_free(values); + GList *values = g_hash_table_get_values(windows); + GList *curr = values; + while (curr != NULL) { + ProfWin *window = curr->data; + wresize(window->win, PAD_SIZE, cols); + win_redraw(window); + curr = g_list_next(curr); } + g_list_free(values); ProfWin *current_win = wins_get_current(); |