diff --git a/src/viewer/ascii.c b/src/viewer/ascii.c
index b6848e2..1ed085a 100644
a
|
b
|
mcview_display_line (mcview_t * view, mcview_state_machine_t * state, int row, |
617 | 617 | return (col > 0) ? 1 : 0; |
618 | 618 | } |
619 | 619 | |
620 | | if (view->search_start <= state->offset && state->offset < view->search_end) |
| 620 | if (view->search_start <= state_saved.offset && state_saved.offset < view->search_end) |
621 | 621 | color = SELECTED_COLOR; |
622 | 622 | |
623 | 623 | if (cs[0] == '\n') |
diff --git a/src/viewer/search.c b/src/viewer/search.c
index 915bb85..40fcc29 100644
a
|
b
|
mcview_search_show_result (mcview_t * view, size_t match_len) |
168 | 168 | view->search->normal_offset - view->search->start_buffer) : 0; |
169 | 169 | view->search_start = view->search->normal_offset + nroff_len; |
170 | 170 | |
171 | | if (!view->hex_mode) |
172 | | view->search_start++; |
173 | | |
174 | 171 | nroff_len = |
175 | 172 | view->text_nroff_mode ? mcview__get_nroff_real_len (view, view->search_start - 1, |
176 | 173 | match_len) : 0; |