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:
parent
bc2bead505
commit
0827e00247
11
src/custom.c
11
src/custom.c
@ -640,15 +640,26 @@ custom_sidebar_config (void)
|
|||||||
wgetch (hwin.win.p);
|
wgetch (hwin.win.p);
|
||||||
wins_scrollwin_delete (&hwin);
|
wins_scrollwin_delete (&hwin);
|
||||||
break;
|
break;
|
||||||
|
case KEY_RESIZE:
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (resize)
|
||||||
|
{
|
||||||
|
resize = 0;
|
||||||
|
wins_reset ();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
wins_reinit_panels ();
|
wins_reinit_panels ();
|
||||||
wins_update_border ();
|
wins_update_border ();
|
||||||
wins_update_panels ();
|
wins_update_panels ();
|
||||||
keys_display_bindings_bar (win[STA].p, binding, 0, binding_size);
|
keys_display_bindings_bar (win[STA].p, binding, 0, binding_size);
|
||||||
wins_doupdate ();
|
wins_doupdate ();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
Loading…
x
Reference in New Issue
Block a user