aboutsummaryrefslogtreecommitdiff
path: root/sam.c
diff options
context:
space:
mode:
authorRandy Palamar <randy@rnpnr.xyz>2025-01-12 07:17:06 -0700
committerRandy Palamar <randy@rnpnr.xyz>2025-01-12 07:17:06 -0700
commitf2b2337a31c8e9e89085ed9d123d743e976ba85b (patch)
treecdcce4025e405b6b5dfb1fe88d66b75a24867d49 /sam.c
parent1b483c2cb47e2f64726e1bbb0923a4fa40ac8126 (diff)
downloadvis-f2b2337a31c8e9e89085ed9d123d743e976ba85b.tar.gz
vis-f2b2337a31c8e9e89085ed9d123d743e976ba85b.tar.xz
buffer: drop buffer_move function
Diffstat (limited to 'sam.c')
-rw-r--r--sam.c6
1 files changed, 3 insertions, 3 deletions
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) {