diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2014-09-18 18:13:25 +0200 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2014-09-18 18:13:25 +0200 |
| commit | def913f428365d048ce30d71117421acbf379a75 (patch) | |
| tree | cc0f3c8344e903c60de48d91e80ad918cb21a05b | |
| parent | 286a09e486e0f4f0417bc3a411b9a07ffa50f3e1 (diff) | |
| download | vis-def913f428365d048ce30d71117421acbf379a75.tar.gz vis-def913f428365d048ce30d71117421acbf379a75.tar.xz | |
Fix :0 on command prompt to move to begin of file
| -rw-r--r-- | vis.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } |
