about summary refs log tree commit diff stats
path: root/xxxterm.c
diff options
context:
space:
mode:
Diffstat (limited to 'xxxterm.c')
-rw-r--r--xxxterm.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/xxxterm.c b/xxxterm.c
index 3b35925..a3985ab 100644
--- a/xxxterm.c
+++ b/xxxterm.c
@@ -1339,8 +1339,11 @@ search(struct tab *t, struct karg *args)
 	if (t->search_text == NULL) {
 		if (global_search == NULL)
 			return (XT_CB_PASSTHROUGH);
-		else
+		else {
 			t->search_text = g_strdup(global_search);
+			webkit_web_view_mark_text_matches(t->wv, global_search, FALSE, 0);
+			webkit_web_view_set_highlight_text_matches(t->wv, TRUE);
+		}
 	}
 
 	DNPRINTF(XT_D_CMD, "search: tab %d opc %d forw %d text %s\n",