aboutsummaryrefslogtreecommitdiff
path: root/vis.c
diff options
context:
space:
mode:
Diffstat (limited to 'vis.c')
-rw-r--r--vis.c2
1 files changed, 1 insertions, 1 deletions
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;
}