diff options
author | Leo Tenenbaum <pommicket@gmail.com> | 2021-02-16 15:38:59 -0500 |
---|---|---|
committer | Leo Tenenbaum <pommicket@gmail.com> | 2021-02-16 15:38:59 -0500 |
commit | 4b8db533619ee8eef64ded0793f413faaa7609c2 (patch) | |
tree | 8b3f158897ae2ff2f3e8f78ad0712bc4b40b328f /find.c | |
parent | 824c4ff4be5a0bf55b6644fed06fcfe2248c4301 (diff) |
detecting errors in build output
Diffstat (limited to 'find.c')
-rw-r--r-- | find.c | 12 |
1 files changed, 0 insertions, 12 deletions
@@ -413,18 +413,6 @@ static void find_menu_frame(Ted *ted, float x1, float y1, float x2, float y2) { x += checkbox_frame(ted, &ted->find_case_sensitive, "Case sensitive", V2(x, y1)).x + 2*padding; x += checkbox_frame(ted, &ted->find_regex, "Regular expression", V2(x, y1)).x + 2*padding; - if (replace) { - // check if the find or replace line buffer was clicked on - for (u32 i = 0; i < ted->nmouse_clicks[SDL_BUTTON_LEFT]; ++i) { - v2 point = ted->mouse_clicks[SDL_BUTTON_LEFT][i]; - if (rect_contains_point(find_buffer_bounds, point)) - ted->active_buffer = find_buffer; - else if (rect_contains_point(replace_buffer_bounds, point)) - ted->active_buffer = replace_buffer; - - } - } - buffer_render(find_buffer, find_buffer_bounds); if (replace) buffer_render(replace_buffer, replace_buffer_bounds); |