aboutsummaryrefslogtreecommitdiff
path: root/vis.c
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2014-09-18 18:13:25 +0200
committerMarc André Tanner <mat@brain-dump.org>2014-09-18 18:13:25 +0200
commitdef913f428365d048ce30d71117421acbf379a75 (patch)
treecc0f3c8344e903c60de48d91e80ad918cb21a05b /vis.c
parent286a09e486e0f4f0417bc3a411b9a07ffa50f3e1 (diff)
downloadvis-def913f428365d048ce30d71117421acbf379a75.tar.gz
vis-def913f428365d048ce30d71117421acbf379a75.tar.xz
Fix :0 on command prompt to move to begin of file
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;
}