summaryrefslogtreecommitdiff
path: root/find.c
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2022-12-29 13:38:46 -0500
committerpommicket <pommicket@gmail.com>2022-12-29 13:38:46 -0500
commit6e6b407550db47d3f9c85875c0f69444cf640796 (patch)
tree433d70ad1857744cad830b141c9cabd1e7ddf7d6 /find.c
parentf1e2e8382cc09bacb5da9e3c9463fea983a9e146 (diff)
hover highlight
Diffstat (limited to 'find.c')
-rw-r--r--find.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/find.c b/find.c
index 5834c04..abdfc3e 100644
--- a/find.c
+++ b/find.c
@@ -136,7 +136,7 @@ void find_update(Ted *ted, bool force) {
find_free_pattern(ted);
if (find_compile_pattern(ted)) {
- BufferPos pos = buffer_start_of_file(buffer);
+ BufferPos pos = buffer_pos_start_of_file(buffer);
BufferPos best_scroll_candidate = {U32_MAX, U32_MAX};
BufferPos cursor_pos = buffer->cursor_pos;
// find all matches