summaryrefslogtreecommitdiff
path: root/find.c
diff options
context:
space:
mode:
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