From 6d02c89f0c5ad8882da14f3e40724e5e1a36168b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Thu, 26 Apr 2018 14:16:28 +0200 Subject: vis: implement gu using tr(1) --- vis-operators.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'vis-operators.c') diff --git a/vis-operators.c b/vis-operators.c index 0e8ff30..64176a6 100644 --- a/vis-operators.c +++ b/vis-operators.c @@ -174,8 +174,6 @@ static size_t op_case_change(Vis *vis, Text *txt, OperatorContext *c) { *cur = islower(ch) ? toupper(ch) : tolower(ch); else if (c->arg->i == VIS_OP_CASE_UPPER) *cur = toupper(ch); - else - *cur = tolower(ch); } } @@ -268,7 +266,6 @@ bool vis_operator(Vis *vis, enum VisOperator id, ...) { case VIS_OP_MODESWITCH: vis->action.mode = va_arg(ap, int); break; - case VIS_OP_CASE_LOWER: case VIS_OP_CASE_UPPER: case VIS_OP_CASE_SWAP: vis->action.arg.i = id; -- cgit v1.2.3