diff -r ef00c1d2645e -r 18461cc48950 src/gtkdebug.c --- a/src/gtkdebug.c Fri Aug 19 05:26:16 2005 +0000 +++ b/src/gtkdebug.c Fri Aug 19 06:36:58 2005 +0000 @@ -333,7 +333,10 @@ gtk_imhtml_append_text(imhtml, text, 0); - if(!win->highlight) { + /* If we're not highlighting and the expression isn't inverted, + * we're done and move on. + */ + if(!win->highlight || inverted == REG_NOMATCH) { g_free(plaintext); return; } @@ -346,8 +349,8 @@ for(m = 0; m < n_matches; m++) { GtkTextIter ms, me; - - if(matches[m].rm_eo == -1) + + if(matches[m].rm_eo == -1) break; i += offset;