diff options
| author | Randy Palamar <randy@rnpnr.xyz> | 2025-01-12 07:17:06 -0700 |
|---|---|---|
| committer | Randy Palamar <randy@rnpnr.xyz> | 2025-01-12 07:17:06 -0700 |
| commit | f2b2337a31c8e9e89085ed9d123d743e976ba85b (patch) | |
| tree | cdcce4025e405b6b5dfb1fe88d66b75a24867d49 /sam.c | |
| parent | 1b483c2cb47e2f64726e1bbb0923a4fa40ac8126 (diff) | |
| download | vis-f2b2337a31c8e9e89085ed9d123d743e976ba85b.tar.gz vis-f2b2337a31c8e9e89085ed9d123d743e976ba85b.tar.xz | |
buffer: drop buffer_move function
Diffstat (limited to 'sam.c')
| -rw-r--r-- | sam.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -597,7 +597,7 @@ static char *parse_until(const char **s, const char *until, const char *escchars buffer_terminate(&buf); - return buffer_move(&buf); + return buf.data; } static char *parse_delimited(const char **s, int type) { @@ -645,7 +645,7 @@ static char *parse_text(const char **s, Count *count) { return NULL; } - return buffer_move(&buf); + return buf.data; } static char *parse_shellcmd(Vis *vis, const char **s) { @@ -683,7 +683,7 @@ static char *parse_cmdname(const char **s) { buffer_terminate(&buf); - return buffer_move(&buf); + return buf.data; } static Regex *parse_regex(Vis *vis, const char **s) { |
