Fixed selection on find_first

This commit is contained in:
Jesse van den Kieboom 2006-01-02 17:45:33 +00:00
parent e4d5b5598c
commit c12a050ec8
1 changed files with 10 additions and 4 deletions

View File

@ -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;
}