quick and dirty fix for hiredis bug creating problem with the new redis-cli connect commmand. Also change prompt when redis-cli is not connected

This commit is contained in:
antirez
2010-11-29 12:20:17 +01:00
parent efcf948c1a
commit d8d528e992
2 changed files with 2 additions and 1 deletions

View File

@ -412,7 +412,7 @@ static void repl() {
sds *argv;
config.interactive = 1;
while((line = linenoise("redis> ")) != NULL) {
while((line = linenoise(context ? "redis> " : "not connected> ")) != NULL) {
if (line[0] != '\0') {
argv = sdssplitargs(line,&argc);
linenoiseHistoryAdd(line);