diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2014-09-13 18:43:19 +0200 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2014-09-13 18:43:19 +0200 |
| commit | 0dcf935f465d8c29b910ef73f0c8665d7fd28030 (patch) | |
| tree | 3029731231c952377173630285077f3567f73540 | |
| parent | 25ba078b62ada6276217ca35b12b8dabf3a2b439 (diff) | |
| download | vis-0dcf935f465d8c29b910ef73f0c8665d7fd28030.tar.gz vis-0dcf935f465d8c29b910ef73f0c8665d7fd28030.tar.xz | |
Fix 'G' movement to end of file
action.count is 1 by default. notice that this breaks 1G which should
move to the first line / start of file.
| -rw-r--r-- | vis.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -498,7 +498,7 @@ static size_t till_left(const Arg *arg) { } static size_t line(const Arg *arg) { - if (action.count == 0) + if (action.count == 1) return text_size(vis->win->text); size_t pos = text_pos_by_lineno(vis->win->text, action.count); action.count = 0; |
