diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2015-11-28 16:18:53 +0100 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2015-11-28 20:09:14 +0100 |
| commit | de9fa14094e1a97769af014d4c23aabfab145d87 (patch) | |
| tree | 0d19cc46456d993f86d4bf2a59a3f2810b055d89 /vis-operators.c | |
| parent | b09c2afba792282de34ed8865fd2a4ca53a48d9d (diff) | |
| download | vis-de9fa14094e1a97769af014d4c23aabfab145d87.tar.gz vis-de9fa14094e1a97769af014d4c23aabfab145d87.tar.xz | |
vis: add cmd argument to VIS_OP_FILTER
Diffstat (limited to 'vis-operators.c')
| -rw-r--r-- | vis-operators.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/vis-operators.c b/vis-operators.c index e93f946..7148b8c 100644 --- a/vis-operators.c +++ b/vis-operators.c @@ -205,7 +205,8 @@ static size_t op_replace(Vis *vis, Text *txt, OperatorContext *c) { } static size_t op_filter(Vis *vis, Text *txt, OperatorContext *c) { - macro_operator_record(vis); + if (!c->arg->s) + macro_operator_record(vis); return text_size(txt) + 1; /* do not change cursor position, would destroy selection */ } |
