diff options
author | cflip <cflip@cflip.net> | 2023-01-25 11:28:09 -0700 |
---|---|---|
committer | cflip <cflip@cflip.net> | 2023-01-25 18:32:43 -0700 |
commit | 723876da5741892530cd74112ec1510124e95cf9 (patch) | |
tree | 2017e9e488a073b274c485fbd192ba05724c01c7 /window.c | |
parent | 69e2be81c732353f5f89389fec3f9bb768b0766a (diff) |
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.
Diffstat (limited to 'window.c')
-rw-r--r-- | window.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -3,7 +3,7 @@ #include <unistd.h> #include <SDL2/SDL.h> -#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) |