Fixed edge case in the k command

This commit is contained in:
Julien Dessaux 2021-10-06 18:35:00 +02:00
parent 2623e80a93
commit dbba21a74b

View file

@ -75,6 +75,9 @@ func (p *Pointer) eval(c int, f *field.Field) (done bool, returnValue *int) {
if n > 0 { if n > 0 {
p.x, p.y = x, y p.x, p.y = x, y
if c != ' ' && c != ';' { if c != ' ' && c != ';' {
if c == 'q' || c == '@' {
return p.eval(c, f)
}
for i := 0; i < n; i++ { for i := 0; i < n; i++ {
p.eval(c, f) p.eval(c, f)
} }