diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2018-04-26 14:20:22 +0200 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2018-05-16 13:24:01 +0200 |
| commit | f9d0d91f5160a69ce6977395ba19c6d20cb8af4d (patch) | |
| tree | db7ae2f114f93b6e322baddab49de42fd77f8c7b /vis-operators.c | |
| parent | 6d02c89f0c5ad8882da14f3e40724e5e1a36168b (diff) | |
| download | vis-f9d0d91f5160a69ce6977395ba19c6d20cb8af4d.tar.gz vis-f9d0d91f5160a69ce6977395ba19c6d20cb8af4d.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 64176a6..2a0329b 100644 --- a/vis-operators.c +++ b/vis-operators.c @@ -172,8 +172,6 @@ static size_t op_case_change(Vis *vis, Text *txt, OperatorContext *c) { if (isascii(ch)) { if (c->arg->i == VIS_OP_CASE_SWAP) *cur = islower(ch) ? toupper(ch) : tolower(ch); - else if (c->arg->i == VIS_OP_CASE_UPPER) - *cur = toupper(ch); } } @@ -266,7 +264,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_UPPER: case VIS_OP_CASE_SWAP: vis->action.arg.i = id; id = VIS_OP_CASE_SWAP; |
