Fixed edge case in the k command
This commit is contained in:
parent
2623e80a93
commit
dbba21a74b
1 changed files with 3 additions and 0 deletions
|
@ -75,6 +75,9 @@ func (p *Pointer) eval(c int, f *field.Field) (done bool, returnValue *int) {
|
|||
if n > 0 {
|
||||
p.x, p.y = x, y
|
||||
if c != ' ' && c != ';' {
|
||||
if c == 'q' || c == '@' {
|
||||
return p.eval(c, f)
|
||||
}
|
||||
for i := 0; i < n; i++ {
|
||||
p.eval(c, f)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue