summaryrefslogtreecommitdiff
path: root/ide-rename-symbol.c
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2023-08-09 19:14:52 -0300
committerpommicket <pommicket@gmail.com>2023-08-09 19:14:52 -0300
commitcca844b42a6303282e7536c8834b74ff56140cbf (patch)
tree78e58dcbb386c10e0311bfced55f79e251e1a569 /ide-rename-symbol.c
parent310faf5d70b8a65c83c013a31ab87d9d3f301767 (diff)
more pointerizing of buffers, fix memory leaks
Diffstat (limited to 'ide-rename-symbol.c')
-rw-r--r--ide-rename-symbol.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/ide-rename-symbol.c b/ide-rename-symbol.c
index 0ff69e8..344f401 100644
--- a/ide-rename-symbol.c
+++ b/ide-rename-symbol.c
@@ -41,11 +41,11 @@ void rename_symbol_frame(Ted *ted) {
}
static void rename_symbol_menu_open(Ted *ted) {
- ted_switch_to_buffer(ted, &ted->line_buffer);
+ ted_switch_to_buffer(ted, ted->line_buffer);
}
static void rename_symbol_menu_update(Ted *ted) {
- TextBuffer *line_buffer = &ted->line_buffer;
+ TextBuffer *line_buffer = ted->line_buffer;
if (line_buffer->line_buffer_submitted) {
char *new_name = str32_to_utf8_cstr(buffer_get_line(line_buffer, 0));
rename_symbol_at_cursor(ted, ted->prev_active_buffer, new_name);
@@ -104,12 +104,12 @@ static void rename_symbol_menu_render(Ted *ted) {
rect_shrink_left(&bounds, text_get_size_vec2(ted->font_bold, text).x + padding);
text_render(ted->font_bold);
- buffer_render(&ted->line_buffer, bounds);
+ buffer_render(ted->line_buffer, bounds);
}
static bool rename_symbol_menu_close(Ted *ted) {
rename_symbol_clear(ted);
- buffer_clear(&ted->line_buffer);
+ buffer_clear(ted->line_buffer);
return true;
}