aboutsummaryrefslogtreecommitdiffstats
path: root/FunctionBar.c
diff options
context:
space:
mode:
authorDaniel Lange <DLange@git.local>2021-01-11 20:43:27 +0100
committerDaniel Lange <DLange@git.local>2021-01-11 20:43:27 +0100
commitc55320e9e2a8916e911bcd39ab37b79e3a7d03b2 (patch)
treed6be9a09fdf7d6dc155de3429a70697ee2bb43b0 /FunctionBar.c
parent65357c8c46154de4e4eca14075bfe5523bb5fc14 (diff)
downloaddebian_htop-c55320e9e2a8916e911bcd39ab37b79e3a7d03b2.tar.gz
debian_htop-c55320e9e2a8916e911bcd39ab37b79e3a7d03b2.tar.bz2
debian_htop-c55320e9e2a8916e911bcd39ab37b79e3a7d03b2.zip
New upstream version 3.0.5upstream/3.0.5
Diffstat (limited to 'FunctionBar.c')
-rw-r--r--FunctionBar.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/FunctionBar.c b/FunctionBar.c
index 627bc77..1c260ab 100644
--- a/FunctionBar.c
+++ b/FunctionBar.c
@@ -112,10 +112,11 @@ void FunctionBar_drawExtra(const FunctionBar* this, const char* buffer, int attr
attrset(attr);
}
mvaddstr(LINES - 1, x, buffer);
- attrset(CRT_colors[RESET_COLOR]);
x += strlen(buffer);
}
+ attrset(CRT_colors[RESET_COLOR]);
+
if (setCursor) {
CRT_cursorX = x;
curs_set(1);
@@ -132,10 +133,10 @@ void FunctionBar_append(const char* buffer, int attr) {
} else {
attrset(attr);
}
- mvaddstr(LINES - 1, currentLen, buffer);
+ mvaddstr(LINES - 1, currentLen + 1, buffer);
attrset(CRT_colors[RESET_COLOR]);
- currentLen += strlen(buffer);
+ currentLen += strlen(buffer) + 1;
}
int FunctionBar_synthesizeEvent(const FunctionBar* this, int pos) {

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