From 1d6aeb08fd8b732a7403ff0b53fe40e7f679caf7 Mon Sep 17 00:00:00 2001 From: Doug Freed Date: Sun, 9 Jun 2019 23:03:31 +0000 Subject: [PATCH] fe-text/mainwindows: fix /window balance warning mainwindow_resize() expects that the mainwindow's height has not yet been updated, as it updates it itself, and throws a warning otherwise. --- src/fe-text/mainwindows.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/fe-text/mainwindows.c b/src/fe-text/mainwindows.c index 677e0e14..051c63ae 100644 --- a/src/fe-text/mainwindows.c +++ b/src/fe-text/mainwindows.c @@ -1298,9 +1298,7 @@ static void window_balance_vertical(void) rec->last_line++; } - rec->height = rec->last_line-rec->first_line+1; - - mainwindow_resize(rec, 0, rec->height-old_size); + mainwindow_resize(rec, 0, rec->last_line - rec->first_line + 1 - old_size); } if (line != NULL && bigger_units > 0) { bigger_units--;