summaryrefslogtreecommitdiffstats
path: root/IncSet.c
diff options
context:
space:
mode:
authorChristian Göttsche <cgzones@googlemail.com>2020-10-05 15:14:54 +0200
committercgzones <cgzones@googlemail.com>2020-10-12 13:04:00 +0200
commitb47bc667a254c1b1a8d6b5a635ca73f6c91c2e1a (patch)
tree56a5f89246329bf188f8387ec3b8a9af13ce254b /IncSet.c
parentfc301b74473f2dc87dca6a338ac17126a058f68d (diff)
Add key to pause process list updates
Diffstat (limited to 'IncSet.c')
-rw-r--r--IncSet.c19
1 files changed, 10 insertions, 9 deletions
diff --git a/IncSet.c b/IncSet.c
index 3e3a1b99..9dda3ce1 100644
--- a/IncSet.c
+++ b/IncSet.c
@@ -95,10 +95,11 @@ static bool search(IncMode* mode, Panel* panel, IncMode_GetPanelValue getPanelVa
break;
}
}
- if (found)
- FunctionBar_draw(mode->bar, mode->buffer);
- else
- FunctionBar_drawAttr(mode->bar, mode->buffer, CRT_colors[FAILED_SEARCH]);
+
+ FunctionBar_drawExtra(mode->bar,
+ mode->buffer,
+ found ? -1 : CRT_colors[FAILED_SEARCH],
+ true);
return found;
}
@@ -177,7 +178,7 @@ bool IncSet_handleKey(IncSet* this, int ch, Panel* panel, IncMode_GetPanelValue
}
this->active = NULL;
Panel_setDefaultBar(panel);
- FunctionBar_draw(this->defaultBar, NULL);
+ FunctionBar_draw(this->defaultBar);
doSearch = false;
}
if (doSearch) {
@@ -198,15 +199,15 @@ const char* IncSet_getListItemValue(Panel* panel, int i) {
void IncSet_activate(IncSet* this, IncType type, Panel* panel) {
this->active = &(this->modes[type]);
- FunctionBar_draw(this->active->bar, this->active->buffer);
+ FunctionBar_drawExtra(this->active->bar, this->active->buffer, -1, true);
panel->currentBar = this->active->bar;
}
-void IncSet_drawBar(IncSet* this) {
+void IncSet_drawBar(const IncSet* this) {
if (this->active) {
- FunctionBar_draw(this->active->bar, this->active->buffer);
+ FunctionBar_drawExtra(this->active->bar, this->active->buffer, -1, true);
} else {
- FunctionBar_draw(this->defaultBar, NULL);
+ FunctionBar_draw(this->defaultBar);
}
}

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