diff --git a/controller/scan.go b/controller/scan.go index 3a7bc2f8..0a0dc6ae 100644 --- a/controller/scan.go +++ b/controller/scan.go @@ -39,7 +39,8 @@ func (c *Controller) cmdScan(msg *server.Message) (res string, err error) { } sw.writeHead() if sw.col != nil { - if sw.output == outputCount && len(sw.wheres) == 0 && sw.globEverything == true { + if sw.output == outputCount && len(sw.wheres) == 0 && + len(sw.whereins) == 0 && sw.globEverything == true { count := sw.col.Count() - int(s.cursor) if count < 0 { count = 0