vis

a vi-like editor based on Plan 9's structural regular expressions

git clone https://9o.is/git/vis.git

commit 6f96e8a3e0b265db14201fd363168e6f60e37139
parent 52e0e75d21a9207fd33a3fcdbbaf6267fee12d08
Author: Marc André Tanner <mat@brain-dump.org>
Date:   Thu, 18 Sep 2014 18:13:25 +0200

Fix :0 on command prompt to move to begin of file

Diffstat:
Mvis.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/vis.c b/vis.c @@ -987,7 +987,7 @@ static void switchmode_to(Mode *new_mode) { static bool cmd_gotoline(const char *argv[]) { action.count = strtoul(argv[0], NULL, 10); - movement(&(const Arg){ .i = MOVE_LINE }); + movement(&(const Arg){ .i = action.count <= 1 ? MOVE_FILE_BEGIN : MOVE_LINE }); return true; }