summaryrefslogtreecommitdiff
path: root/ui.c
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2025-09-28 00:45:33 -0400
committerpommicket <pommicket@gmail.com>2025-09-28 00:46:21 -0400
commit3c9e139aec08d1bb406a6219122ca982b4b7dc34 (patch)
tree4d7993152bbb76f1d8b7df6de45fb032332b94d0 /ui.c
parente78bf3013ddb588638a93bed1f6eff4d0beb5106 (diff)
Remove trailing white space in source files
Diffstat (limited to 'ui.c')
-rw-r--r--ui.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ui.c b/ui.c
index 2af72fa..ce83c35 100644
--- a/ui.c
+++ b/ui.c
@@ -546,7 +546,7 @@ char *file_selector_update(Ted *ted, FileSelector *fs) {
if (file_selector_cd(ted, fs, dir_name)) {
buffer_delete_chars_at_pos(line_buffer, buffer_pos_start_of_file(line_buffer), last_path_sep + 1); // delete up to and including the last path separator
- buffer_clear_undo_redo(line_buffer);
+ buffer_clear_undo_redo(line_buffer);
} else {
// delete up to first path separator in line buffer
BufferPos pos = {.line = 0, .index = first_path_sep};
@@ -676,7 +676,7 @@ vec2 button_get_size(Ted *ted, const char *text) {
return vec2_add_const(text_get_size_vec2(ted->font, text), 2 * border_thickness);
}
-void button_render(Ted *ted, Rect button, const char *text, u32 color) {
+void button_render(Ted *ted, Rect button, const char *text, u32 color) {
if (ted_mouse_in_rect(ted, button)) {
// highlight button when hovering over it
u32 new_color = (color & 0xffffff00) | ((color & 0xff) / 3);
@@ -715,7 +715,7 @@ static void popup_get_rects(Ted const *ted, u32 options, Rect *popup, Rect *butt
if (options & POPUP_CANCEL) {
*button_cancel = r;
r.pos.x += button_width;
- }
+ }
}
PopupOption popup_update(Ted *ted, u32 options) {