From 723876da5741892530cd74112ec1510124e95cf9 Mon Sep 17 00:00:00 2001 From: cflip Date: Wed, 25 Jan 2023 11:28:09 -0700 Subject: Rename `append_buffer` to textbuf This name is a little bit better I think, and it will be nice to have a distinction between this utility and the 'file' kind of buffer. --- window.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'window.c') diff --git a/window.c b/window.c index fbc9a36..9518d69 100644 --- a/window.c +++ b/window.c @@ -3,7 +3,7 @@ #include #include -#include "buffer.h" +#include "textbuf.h" #include "editor.h" #include "error.h" #include "font.h" @@ -145,7 +145,7 @@ static void draw_editor(struct editor_state *editor) } /* Draw the statusline containing file information */ - struct append_buffer statusbuf = ABUF_INIT; + struct textbuf statusbuf = textbuf_init(); editor_draw_status_bar(editor, &statusbuf); editor_draw_message_bar(editor, &statusbuf); @@ -154,7 +154,7 @@ static void draw_editor(struct editor_state *editor) SDL_SetTextureColorMod(font_texture, 0xff, 0xff, 0xff); draw_string(statusbuf.buffer, NULL, statusbuf.length, 0, line_y); - ab_free(&statusbuf); + textbuf_free(&statusbuf); } void window_redraw(struct editor_state *editor) -- cgit v1.2.3