From 2e69f9410f2597b4e1bd0c84ecc06fc2ebe69605 Mon Sep 17 00:00:00 2001 From: Renaud Fivet Date: Thu, 16 Sep 2021 09:46:02 +0800 Subject: [PATCH] Fix position of cursor to avoid extended display of line. --- blindmaz.cmd | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/blindmaz.cmd b/blindmaz.cmd index 0fb496a..b0b907f 100644 --- a/blindmaz.cmd +++ b/blindmaz.cmd @@ -52,10 +52,9 @@ set %absD 0 # absolute direction: looking EAST set %relD &mod &add %relD 1 4 !endwhile # else turn around - set %absD &mod &add %absD 2 4 # face back! + set %absD &mod &add %absD 2 4 # face back! :moveon !endwhile -set $curline %y -set $curcol %x +set $curcol &add %x -1 unmark-buffer