From f6165164eee4e699966ba9bc1cab1e58e69317c8 Mon Sep 17 00:00:00 2001 From: Přemysl Eric Janouch Date: Tue, 1 Sep 2020 18:51:24 +0200 Subject: Fix prompt attributes under libedit I can only guess why this works, and I'm not sure I want to /know/. --- json-rpc-shell.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/json-rpc-shell.c b/json-rpc-shell.c index bbc7290..cbacff8 100644 --- a/json-rpc-shell.c +++ b/json-rpc-shell.c @@ -3460,7 +3460,7 @@ main (int argc, char *argv[]) { // XXX: to be completely correct, we should use tputs, but we cannot g_ctx.input->vtable->set_prompt (g_ctx.input, - xstrdup_printf ("%c%s%cjson-rpc> %c%s%c", + xstrdup_printf ("%c%s%cjson-rpc>%c%s%c ", INPUT_START_IGNORE, g_ctx.attrs[ATTR_PROMPT], INPUT_END_IGNORE, INPUT_START_IGNORE, g_ctx.attrs[ATTR_RESET], -- cgit v1.2.3-70-g09d2