diff options
| author | Randy Palamar <randy@rnpnr.xyz> | 2025-01-11 23:39:06 -0700 |
|---|---|---|
| committer | Randy Palamar <randy@rnpnr.xyz> | 2025-01-11 23:49:58 -0700 |
| commit | 0f31ef53420b755c3978818bcd2e5a86e141413d (patch) | |
| tree | 508af7b7016f9aa2fbe766f310a8dfdc446d8a77 /vis-operators.c | |
| parent | abf6384cca0f80fe7dfb35a8e2281d8664d9d459 (diff) | |
| download | vis-0f31ef53420b755c3978818bcd2e5a86e141413d.tar.gz vis-0f31ef53420b755c3978818bcd2e5a86e141413d.tar.xz | |
buffer: clear out one line functions
Buffer is fully exposed to the program, no need to rely on the
linker to optimize useless code.
Diffstat (limited to 'vis-operators.c')
| -rw-r--r-- | vis-operators.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vis-operators.c b/vis-operators.c index 59abcf6..6b7f873 100644 --- a/vis-operators.c +++ b/vis-operators.c @@ -264,7 +264,7 @@ bool vis_operator(Vis *vis, enum VisOperator id, ...) { case VIS_OP_REPLACE: { Macro *macro = macro_get(vis, VIS_REG_DOT); - macro_reset(macro); + macro->len = 0; macro_append(macro, va_arg(ap, char*)); vis->action.arg.s = macro->data; break; |
