diff --git a/src/redis-cli.c b/src/redis-cli.c index a5836b29..be37a914 100644 --- a/src/redis-cli.c +++ b/src/redis-cli.c @@ -1107,7 +1107,9 @@ static void repl(void) { { exit(0); } else if (strcasecmp(argv[0],"restart") == 0) { - if (config.eval_ldb) { + if (config.eval) { + config.eval_ldb = 1; + config.output = OUTPUT_RAW; return; /* Return to evalMode to restart the session. */ } else { printf("Use 'restart' only in Lua debugging mode.");