summaryrefslogtreecommitdiff
path: root/find.c
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2021-02-16 15:38:59 -0500
committerLeo Tenenbaum <pommicket@gmail.com>2021-02-16 15:38:59 -0500
commit4b8db533619ee8eef64ded0793f413faaa7609c2 (patch)
tree8b3f158897ae2ff2f3e8f78ad0712bc4b40b328f /find.c
parent824c4ff4be5a0bf55b6644fed06fcfe2248c4301 (diff)
detecting errors in build output
Diffstat (limited to 'find.c')
-rw-r--r--find.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/find.c b/find.c
index 2612577..12455bd 100644
--- a/find.c
+++ b/find.c
@@ -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);