From def913f428365d048ce30d71117421acbf379a75 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Thu, 18 Sep 2014 18:13:25 +0200 Subject: Fix :0 on command prompt to move to begin of file --- vis.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vis.c') diff --git a/vis.c b/vis.c index f64fa82..dfe02fa 100644 --- 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; } -- cgit v1.2.3