From 37fcfd0881ffdf99d85388ef6753d0e9e34f36cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Wed, 8 Jul 2015 11:51:54 +0200 Subject: vis: make J (join) behave like in vim when given a count --- vis.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'vis.c') diff --git a/vis.c b/vis.c index ef98eea..8cab79a 100644 --- a/vis.c +++ b/vis.c @@ -1150,6 +1150,8 @@ static void openline(const Arg *arg) { } static void join(const Arg *arg) { + if (vis->action.count) + vis->action.count--; operator(&(const Arg){ .i = OP_JOIN }); movement(arg); } -- cgit v1.2.3