From e3962366519e171aff0c7ae1253edb554fc85c5d Mon Sep 17 00:00:00 2001 From: charsyam Date: Wed, 16 Jan 2013 17:20:54 -0800 Subject: [PATCH] redis-cli prompt bug fix --- src/redis-cli.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/redis-cli.c b/src/redis-cli.c index 3969fbab5..44a864783 100644 --- a/src/redis-cli.c +++ b/src/redis-cli.c @@ -794,6 +794,7 @@ static void repl() { sdsfree(config.hostip); config.hostip = sdsnew(argv[1]); config.hostport = atoi(argv[2]); + cliRefreshPrompt(); cliConnect(1); } else if (argc == 1 && !strcasecmp(argv[0],"clear")) { linenoiseClearScreen();