From f2b2337a31c8e9e89085ed9d123d743e976ba85b Mon Sep 17 00:00:00 2001 From: Randy Palamar Date: Sun, 12 Jan 2025 07:17:06 -0700 Subject: buffer: drop buffer_move function --- sam.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sam.c') diff --git a/sam.c b/sam.c index de547d1..f1d57c5 100644 --- a/sam.c +++ b/sam.c @@ -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) { -- cgit v1.2.3