Fixed selection on find_first
This commit is contained in:
parent
e4d5b5598c
commit
c12a050ec8
|
@ -100,8 +100,14 @@ gm_searchable_text_view_find_first(GtkTextView *text_view,
|
|||
|
||||
gtk_text_buffer_place_cursor(buffer, &iter);
|
||||
|
||||
if (*str == '\0') {
|
||||
gtk_text_buffer_move_mark(buffer,
|
||||
gtk_text_buffer_get_selection_bound(buffer), &iter);
|
||||
return FALSE;
|
||||
} else {
|
||||
return gm_searchable_text_view_find_next(text_view, str, flags);
|
||||
}
|
||||
}
|
||||
|
||||
return FALSE;
|
||||
}
|
||||
|
|
Reference in New Issue