Don't unmark search matches if the this feature is disabled.
authorDaniel Carl <danielcarl@gmx.de>
Mon, 24 Feb 2014 08:34:25 +0000 (09:34 +0100)
committerDaniel Carl <danielcarl@gmx.de>
Mon, 24 Feb 2014 08:34:25 +0000 (09:34 +0100)
src/ex.c

index 2b6c5ab..89775c7 100644 (file)
--- a/src/ex.c
+++ b/src/ex.c
@@ -325,7 +325,9 @@ void ex_input_changed(const char *text)
 
         case '/': forward = true; /* fall through */
         case '?':
+#ifdef FEATURE_SEARCH_HIGHLIGHT
             webkit_web_view_unmark_text_matches(vb.gui.webview);
+#endif
             webkit_web_view_search_text(vb.gui.webview, &text[1], false, forward, false);
             break;
     }