about summary refs log tree commit diff stats
path: root/xxxterm.c
diff options
context:
space:
mode:
authorMarco Peereboom <marco@conformal.com>2010-12-21 00:31:47 +0000
committerMarco Peereboom <marco@conformal.com>2010-12-21 00:31:47 +0000
commita27006165faa16096c6c062debc214c27bad8b7d (patch)
treea13d4492d33a7b6f643ea728f137ed86ab959ed4 /xxxterm.c
parentfc4ed7b5a28aeb109aeeca698431ac419a6b7203 (diff)
downloadxombrero-a27006165faa16096c6c062debc214c27bad8b7d.tar.gz
highlight the text being searched from global_search
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",