summaryrefslogtreecommitdiffstats
path: root/Panel.c
diff options
context:
space:
mode:
authorChristian Göttsche <cgzones@googlemail.com>2020-11-23 16:23:18 +0100
committerBenBE <BenBE@geshi.org>2020-11-28 19:49:38 +0100
commit19b514168553c75a3d5a012b781efbfd00fccc08 (patch)
treee74918f4b1dad2b83b67e16cb235fc5c8b23b208 /Panel.c
parentea4f33409a978140493a43567fa3a3454ab03479 (diff)
Hide process selection on ESC
Do not highlight the current process line after pressing ESC in the main screen. Restore after pressing any key.
Diffstat (limited to 'Panel.c')
-rw-r--r--Panel.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Panel.c b/Panel.c
index fd9de2b1..68a245e3 100644
--- a/Panel.c
+++ b/Panel.c
@@ -217,7 +217,7 @@ void Panel_splice(Panel* this, Vector* from) {
this->needsRedraw = true;
}
-void Panel_draw(Panel* this, bool focus) {
+void Panel_draw(Panel* this, bool focus, bool highlightSelected) {
assert (this != NULL);
int size = Vector_size(this->items);
@@ -273,7 +273,7 @@ void Panel_draw(Panel* this, bool focus) {
Object_display(itemObj, &item);
int itemLen = RichString_sizeVal(item);
int amt = MINIMUM(itemLen - scrollH, this->w);
- if (i == this->selected) {
+ if (highlightSelected && i == this->selected) {
item.highlightAttr = selectionColor;
}
if (item.highlightAttr) {

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