diff options
Diffstat (limited to 'tools/perf/ui/tui/helpline.c')
-rw-r--r-- | tools/perf/ui/tui/helpline.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/perf/ui/tui/helpline.c b/tools/perf/ui/tui/helpline.c index 1c8b9afd5d6e..88f5143a5981 100644 --- a/tools/perf/ui/tui/helpline.c +++ b/tools/perf/ui/tui/helpline.c | |||
@@ -9,6 +9,7 @@ | |||
9 | #include "../libslang.h" | 9 | #include "../libslang.h" |
10 | 10 | ||
11 | char ui_helpline__last_msg[1024]; | 11 | char ui_helpline__last_msg[1024]; |
12 | bool tui_helpline__set; | ||
12 | 13 | ||
13 | static void tui_helpline__pop(void) | 14 | static void tui_helpline__pop(void) |
14 | { | 15 | { |
@@ -35,6 +36,8 @@ static int tui_helpline__show(const char *format, va_list ap) | |||
35 | sizeof(ui_helpline__last_msg) - backlog, format, ap); | 36 | sizeof(ui_helpline__last_msg) - backlog, format, ap); |
36 | backlog += ret; | 37 | backlog += ret; |
37 | 38 | ||
39 | tui_helpline__set = true; | ||
40 | |||
38 | if (ui_helpline__last_msg[backlog - 1] == '\n') { | 41 | if (ui_helpline__last_msg[backlog - 1] == '\n') { |
39 | ui_helpline__puts(ui_helpline__last_msg); | 42 | ui_helpline__puts(ui_helpline__last_msg); |
40 | SLsmg_refresh(); | 43 | SLsmg_refresh(); |