summaryrefslogtreecommitdiff
path: root/find.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 /find.c
parente78bf3013ddb588638a93bed1f6eff4d0beb5106 (diff)
Remove trailing white space in source files
Diffstat (limited to 'find.c')
-rw-r--r--find.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/find.c b/find.c
index a2a52a8..974bd14 100644
--- a/find.c
+++ b/find.c
@@ -161,7 +161,7 @@ void find_redo_search(Ted *ted) {
}
arr_foreach_ptr(ted->find_results, FindResult, res) {
- if (best_scroll_candidate.line == U32_MAX
+ if (best_scroll_candidate.line == U32_MAX
|| (buffer_pos_cmp(best_scroll_candidate, cursor_pos) < 0 && buffer_pos_cmp(res->start, cursor_pos) >= 0))
best_scroll_candidate = res->start;
}
@@ -481,7 +481,7 @@ void find_menu_frame(Ted *ted, Rect menu_bounds) {
void find_open(Ted *ted, bool replace) {
if (menu_is_any_open(ted)) return;
- if (ted->active_buffer == ted->build_buffer) return;
+ if (ted->active_buffer == ted->build_buffer) return;
if (!ted->find)
ted->prev_active_buffer = ted->active_buffer;
ted_switch_to_buffer(ted, ted->find_buffer);
@@ -580,7 +580,7 @@ static void find_edit_notify(void *context, TextBuffer *buffer, const EditInfo *
}
} else if (buffer == ted->find_buffer) {
find_redo_search(ted);
- buffer_scroll_to_cursor(buffer);
+ buffer_scroll_to_cursor(buffer);
}
}