From 065aab5247012498f3c00fb5edf7712672c0a40e Mon Sep 17 00:00:00 2001 From: Antoine Catton Date: Wed, 9 Dec 2015 23:42:56 -0700 Subject: Redraw the panel when resizing the window during an incremental search KEY_RESIZE wasn't handled by the incremental search. Resulting in this bug: * Set your terminal window to a small size. * Press '\' to filter the processes * Maximize your terminal window * The list of processes didn't resize. This change fixes this bug. Thank you Julian Andrews (@julianandrews) for finding this bug. --- IncSet.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'IncSet.c') diff --git a/IncSet.c b/IncSet.c index 2b1ad392..93be6b3a 100644 --- a/IncSet.c +++ b/IncSet.c @@ -169,6 +169,8 @@ bool IncSet_handleKey(IncSet* this, int ch, Panel* panel, IncMode_GetPanelValue IncMode_reset(mode); } } + } else if (ch == KEY_RESIZE) { + Panel_resize(panel, COLS, LINES-panel->y-1); } else { if (mode->isFilter) { filterChanged = true; -- cgit v1.2.3