--- vte.c.ORG	Thu Sep 18 22:35:10 2003
+++ vte.c	Fri Sep 19 20:08:49 2003
@@ -8627,12 +8627,17 @@ vte_terminal_match_hilite(VteTerminal *t
 	/* Check for matches. */
 	screen = terminal->pvt->screen;
 	delta = screen->scroll_delta;
+
+#ifndef VTE_DONT_HIGHLIGHT_PATTERNS
 	match = vte_terminal_match_check_internal(terminal,
 						  floor(x) / width,
 						  floor(y) / height + delta,
 						  NULL,
 						  &start,
 						  &end);
+#else
+        match = NULL;
+#endif
 
 	/* If there are no matches, repaint what we had matched before. */
 	if (match == NULL) {
