From c55320e9e2a8916e911bcd39ab37b79e3a7d03b2 Mon Sep 17 00:00:00 2001 From: Daniel Lange Date: Mon, 11 Jan 2021 20:43:27 +0100 Subject: New upstream version 3.0.5 --- FunctionBar.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'FunctionBar.c') 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) { -- cgit v1.2.3