summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2019-09-23 17:42:57 +0200
committerantirez <antirez@gmail.com>2019-09-23 17:42:57 +0200
commitbb7546c9134b21b32e2fc9a6850407179bad8a64 (patch)
tree309f6b15af12dc19556442516639546ac8e967b6
parent5e399d5d335b2d4464621cbf6a3e2568dd779178 (diff)
downloadredis-bb7546c9134b21b32e2fc9a6850407179bad8a64.tar.gz
RESP3: varbatim handling for other redis-cli outputs.
-rw-r--r--src/redis-cli.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/redis-cli.c b/src/redis-cli.c
index d08dfeb5f..9a5f81723 100644
--- a/src/redis-cli.c
+++ b/src/redis-cli.c
@@ -968,6 +968,7 @@ static sds cliFormatReplyRaw(redisReply *r) {
break;
case REDIS_REPLY_STATUS:
case REDIS_REPLY_STRING:
+ case REDIS_REPLY_VERB:
if (r->type == REDIS_REPLY_STATUS && config.eval_ldb) {
/* The Lua debugger replies with arrays of simple (status)
* strings. We colorize the output for more fun if this
@@ -1021,6 +1022,7 @@ static sds cliFormatReplyCSV(redisReply *r) {
out = sdscatprintf(out,"%lld",r->integer);
break;
case REDIS_REPLY_STRING:
+ case REDIS_REPLY_VERB:
out = sdscatrepr(out,r->str,r->len);
break;
case REDIS_REPLY_NIL: