From 2623e80a937a7d0e077a3681e13883778d1032b5 Mon Sep 17 00:00:00 2001 From: Julien Dessaux Date: Wed, 6 Oct 2021 00:08:14 +0200 Subject: Simplified some code --- pkg/pointer/pointer.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'pkg/pointer/pointer.go') diff --git a/pkg/pointer/pointer.go b/pkg/pointer/pointer.go index 1465145..4467235 100644 --- a/pkg/pointer/pointer.go +++ b/pkg/pointer/pointer.go @@ -99,9 +99,8 @@ func (p *Pointer) Redirect(c int) bool { case 'r': p.Reverse() case 'x': - dy := p.ss.head.Pop() - dx := p.ss.head.Pop() - p.RedirectTo(dx, dy) + p.dy = p.ss.head.Pop() + p.dx = p.ss.head.Pop() default: return false } -- cgit v1.2.3