diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2018-04-26 14:16:28 +0200 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2018-05-16 13:24:01 +0200 |
| commit | 6d02c89f0c5ad8882da14f3e40724e5e1a36168b (patch) | |
| tree | c514c17bccce0175aeb80c2979c0b0b100375a0b /vis-operators.c | |
| parent | c438b98fbad78473008d6b96af594a5e048fbf37 (diff) | |
| download | vis-6d02c89f0c5ad8882da14f3e40724e5e1a36168b.tar.gz vis-6d02c89f0c5ad8882da14f3e40724e5e1a36168b.tar.xz | |
vis: implement gu using tr(1)
Diffstat (limited to 'vis-operators.c')
| -rw-r--r-- | vis-operators.c | 3 |
1 files changed, 0 insertions, 3 deletions
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; |
