aboutsummaryrefslogtreecommitdiff
path: root/vis.c
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2015-07-08 11:51:54 +0200
committerMarc André Tanner <mat@brain-dump.org>2015-07-08 11:51:54 +0200
commit37fcfd0881ffdf99d85388ef6753d0e9e34f36cd (patch)
tree68a4c42ea42c4e82f2a0b92c64e0f3ddab52fa2f /vis.c
parent4b405540db0bd96466df4eb5f25228517086cb48 (diff)
downloadvis-37fcfd0881ffdf99d85388ef6753d0e9e34f36cd.tar.gz
vis-37fcfd0881ffdf99d85388ef6753d0e9e34f36cd.tar.xz
vis: make J (join) behave like in vim when given a count
Diffstat (limited to 'vis.c')
-rw-r--r--vis.c2
1 files changed, 2 insertions, 0 deletions
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);
}