redis-cli prompt bug fix

This commit is contained in:
charsyam 2013-01-16 17:20:54 -08:00
parent eb113b97f9
commit 5596ba6ede

View File

@ -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();