From 0dcf935f465d8c29b910ef73f0c8665d7fd28030 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Sat, 13 Sep 2014 18:43:19 +0200 Subject: 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. --- vis.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vis.c') 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; -- cgit v1.2.3