aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2014-09-13 18:43:19 +0200
committerMarc André Tanner <mat@brain-dump.org>2014-09-13 18:43:19 +0200
commit0dcf935f465d8c29b910ef73f0c8665d7fd28030 (patch)
tree3029731231c952377173630285077f3567f73540
parent25ba078b62ada6276217ca35b12b8dabf3a2b439 (diff)
downloadvis-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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vis.c b/vis.c
index d45c4c8..4be43e9 100644
--- a/vis.c
+++ b/vis.c
@@ -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;