|
@@ -9,6 +9,7 @@
|
|
#include "../libslang.h"
|
|
#include "../libslang.h"
|
|
|
|
|
|
char ui_helpline__last_msg[1024];
|
|
char ui_helpline__last_msg[1024];
|
|
|
|
+bool tui_helpline__set;
|
|
|
|
|
|
static void tui_helpline__pop(void)
|
|
static void tui_helpline__pop(void)
|
|
{
|
|
{
|
|
@@ -35,6 +36,8 @@ static int tui_helpline__show(const char *format, va_list ap)
|
|
sizeof(ui_helpline__last_msg) - backlog, format, ap);
|
|
sizeof(ui_helpline__last_msg) - backlog, format, ap);
|
|
backlog += ret;
|
|
backlog += ret;
|
|
|
|
|
|
|
|
+ tui_helpline__set = true;
|
|
|
|
+
|
|
if (ui_helpline__last_msg[backlog - 1] == '\n') {
|
|
if (ui_helpline__last_msg[backlog - 1] == '\n') {
|
|
ui_helpline__puts(ui_helpline__last_msg);
|
|
ui_helpline__puts(ui_helpline__last_msg);
|
|
SLsmg_refresh();
|
|
SLsmg_refresh();
|