summaryrefslogtreecommitdiffstats
path: root/IncSet.c
diff options
context:
space:
mode:
authorAntoine Catton <devel@antoine.catton.fr>2015-12-09 23:42:56 -0700
committerAntoine Catton <devel@antoine.catton.fr>2015-12-09 23:46:25 -0700
commit065aab5247012498f3c00fb5edf7712672c0a40e (patch)
tree83516b6dafcbaa42987bb5ab15857a1a7d0205ad /IncSet.c
parentcccc18dd2f820c3eba3a495eb2265d682c77d718 (diff)
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.
Diffstat (limited to 'IncSet.c')
-rw-r--r--IncSet.c2
1 files changed, 2 insertions, 0 deletions
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;

© 2014-2024 Faster IT GmbH | imprint | privacy policy