From 8910f3fc969ebc64c3f71d162cc9383cf197cdba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Wed, 10 Sep 2014 19:20:20 +0200 Subject: Add normal command 'S' as asynonym for 'cc' --- vis.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'vis.c') diff --git a/vis.c b/vis.c index cb55d98..fe7d4c1 100644 --- a/vis.c +++ b/vis.c @@ -321,6 +321,8 @@ static void count(const Arg *arg); static void linewise(const Arg *arg); /* make the current action use the operator indicated by arg->i */ static void operator(const Arg *arg); +/* execute operator twice useful for synonyms (e.g. 'cc') */ +static void operator_twice(const Arg *arg); /* blocks to read a key and performs movement indicated by arg->i which * should be one of MOVE_{RIGHT,LEFT}_{TO,TILL} */ static void movement_key(const Arg *arg); @@ -527,6 +529,11 @@ static void operator(const Arg *arg) { } } +static void operator_twice(const Arg *arg) { + operator(arg); + operator(arg); +} + static void movement_key(const Arg *arg) { Key k = getkey(); if (!k.str[0]) { -- cgit v1.2.3