commit 960b01da276db9c9b70d0756a6d30833d37174f4 from: Omar Polo date: Sun Jun 20 21:20:54 2021 UTC bring back the ugly hack for the side window commit - 41a9ae4060ba6215378a97251538791fd94605f6 commit + 960b01da276db9c9b70d0756a6d30833d37174f4 blob - 47f28a2f33a5466036a1a3e074f3c1e847eb64bd blob + abe72527fe8fb818e1da736edb1a8d9c120d8077 --- cmd.c +++ cmd.c @@ -484,7 +484,6 @@ void cmd_toggle_help(struct buffer *buffer) { ui_toggle_side_window(); - ui_schedule_redraw(); } void blob - 090f91e96b4d0ed0c5f340ab971aa688af5a4ad0 blob + 65f407b50b5a25eaeaf797a76f76eced6b9f66ef --- ui.c +++ ui.c @@ -1440,6 +1440,14 @@ ui_toggle_side_window(void) side_window = !side_window; if (side_window) recompute_help(); + + /* + * ugly hack, but otherwise the window doesn't get updated + * until I call handle_resize a second time (i.e. C-l). I + * will be happy to know why something like this is needed. + */ + handle_resize_nodelay(0, 0, NULL); + handle_resize_nodelay(0, 0, NULL); } void