Resize panels properly

Rewrite the panel resize code and remove the code that reinitializes the
caption and the selected item when the window is resized.

Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
This commit is contained in:
Lukas Fleischer
2014-05-19 10:54:50 +02:00
parent e026481f11
commit 990897b2f0
4 changed files with 23 additions and 17 deletions

View File

@@ -303,7 +303,7 @@ void custom_sidebar_config(void)
resize = 0;
wins_reset();
} else {
wins_reinit_panels();
wins_resize_panels();
wins_update_border(FLAG_ALL);
wins_update_panels(FLAG_ALL);
keys_display_bindings_bar(win[STA].p, bindings,