Handle resize properly in the sidebar config menu

There used to be no resize handler in custom_sidebar_config() which
resulted in a messed up screen if the terminal was resized during
sidebar configuration. Doing a simple wins_reset() if the terminal was
resized works around this problem.

Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
This commit is contained in:
Lukas Fleischer 2011-06-29 15:10:58 +02:00
parent bc2bead505
commit 0827e00247

View File

@ -640,9 +640,19 @@ custom_sidebar_config (void)
wgetch (hwin.win.p);
wins_scrollwin_delete (&hwin);
break;
case KEY_RESIZE:
break;
default:
continue;
}
if (resize)
{
resize = 0;
wins_reset ();
}
else
{
wins_reinit_panels ();
wins_update_border ();
wins_update_panels ();
@ -650,6 +660,7 @@ custom_sidebar_config (void)
wins_doupdate ();
}
}
}
static void
set_confwin_attr (struct window *cwin)