Author: PeterB Date: Sat Feb 9 04:52:05 2008 New Revision: 7844 URL: http://svn.gnome.org/viewvc/balsa?rev=7844&view=rev
Log: clean up Modified: trunk/ChangeLog trunk/src/balsa-message.c Modified: trunk/src/balsa-message.c ============================================================================== --- trunk/src/balsa-message.c (original) +++ trunk/src/balsa-message.c Sat Feb 9 04:52:05 2008 @@ -491,19 +491,17 @@ found = gtk_text_iter_forward_search(&bm->find_iter, text, 0, &match_begin, &match_end, NULL); + if (!found) { + gtk_text_buffer_get_start_iter(buffer, &bm->find_iter); + gtk_text_iter_forward_search(&bm->find_iter, text, 0, + &match_begin, &match_end, NULL); + } } else { gtk_text_iter_backward_char(&bm->find_iter); found = gtk_text_iter_backward_search(&bm->find_iter, text, 0, &match_begin, &match_end, NULL); - } - - if (!found) { - if (find_forward) { - gtk_text_buffer_get_start_iter(buffer, &bm->find_iter); - gtk_text_iter_forward_search(&bm->find_iter, text, 0, - &match_begin, &match_end, NULL); - } else { + if (!found) { gtk_text_buffer_get_end_iter(buffer, &bm->find_iter); gtk_text_iter_backward_search(&bm->find_iter, text, 0, &match_begin, &match_end, NULL); _______________________________________________ SVN-commits-list mailing list (read only) http://mail.gnome.org/mailman/listinfo/svn-commits-list Want to limit the commits to a few modules? Go to above URL, log in to edit your options and select the modules ('topics') you want. Module maintainer? It is possible to set the reply-to to your development mailing list. Email [EMAIL PROTECTED] if interested.