From dbba21a74b2afa7d8bea7c1f5cbb75c6a15a8f1b Mon Sep 17 00:00:00 2001 From: Julien Dessaux Date: Wed, 6 Oct 2021 18:35:00 +0200 Subject: Fixed edge case in the k command --- pkg/pointer/exec.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/pointer/exec.go b/pkg/pointer/exec.go index 9859360..aae7a81 100644 --- a/pkg/pointer/exec.go +++ b/pkg/pointer/exec.go @@ -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) } -- cgit v1.2.3