Fix count when parsing bottom command

This commit is contained in:
Joe Lim committed 2023-05-12 14:12:19 +10:00
1 parent f04401ba4d
commit a0b6bb5a13
1 file changed
+5 -1
+5 -1
View File
@@ -228,7 +228,11 @@ func (p *parser) parseExpr() expr {
s.scan()
result = &callExpr{name, args, 1}
count := 1
if name == "top" || name == "bottom" {
count = 0
}
result = &callExpr{name, args, count}
}
case tokenColon:
s.scan()