Fix prompt attributes under libedit

I can only guess why this works, and I'm not sure I want to /know/.
This commit is contained in:
Přemysl Eric Janouch 2020-09-01 18:51:24 +02:00
parent 3a445c2db2
commit f6165164ee
Signed by: p
GPG Key ID: A0420B94F92B9493
1 changed files with 1 additions and 1 deletions

View File

@ -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],