From 5274c7c48d9c1f837f88823b59cfaad53f0db932 Mon Sep 17 00:00:00 2001 From: Allen Webster Date: Fri, 20 May 2016 13:14:46 -0400 Subject: [PATCH] fixed incremental search bug --- 4ed_file_view.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/4ed_file_view.cpp b/4ed_file_view.cpp index bca18964..300d91a2 100644 --- a/4ed_file_view.cpp +++ b/4ed_file_view.cpp @@ -3201,9 +3201,11 @@ view_get_cursor_view_change_state(View *view){ i32 result = 0; b32 cursor_change = 0; b32 view_change = 0; + i32 pos = 0; if (view->gui_target.did_file){ - cursor_change = (view->prev_cursor_pos != view->file_data.cursor.pos); + pos = view_get_cursor_pos(view); + cursor_change = (view->prev_cursor_pos != pos); } if (view->current_scroll){