From 3f3213b2e215ba947e1155cd591f6f73e1ffce76 Mon Sep 17 00:00:00 2001 From: Hisham Muhammad Date: Thu, 8 Sep 2011 01:10:58 +0000 Subject: show cursor when function bar allows typing an entry. --- FunctionBar.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'FunctionBar.c') diff --git a/FunctionBar.c b/FunctionBar.c index ef643462..ef0fcba2 100644 --- a/FunctionBar.c +++ b/FunctionBar.c @@ -111,9 +111,13 @@ void FunctionBar_drawAttr(const FunctionBar* this, char* buffer, int attr) { mvaddstr(LINES-1, x, this->functions[i]); x += strlen(this->functions[i]); } - if (buffer != NULL) { + if (buffer) { attrset(attr); mvaddstr(LINES-1, x, buffer); + CRT_cursorX = x + strlen(buffer); + curs_set(1); + } else { + curs_set(0); } attrset(CRT_colors[RESET_COLOR]); } -- cgit v1.2.3