aboutsummaryrefslogtreecommitdiffhomepage
path: root/uzbl.c
diff options
context:
space:
mode:
authorGravatar dusanx <ef_dva@yahoo.com>2009-05-03 17:10:02 +0200
committerGravatar dusanx <ef_dva@yahoo.com>2009-05-03 17:10:02 +0200
commit2fc5928e22c1042918860f6e335ba36318f0ebfe (patch)
treed75e72a984965364b5dec15b132e4a371cebe32a /uzbl.c
parent1825c5b18e7369cf63025ea13ebcf898135bc65b (diff)
Small search fix
Diffstat (limited to 'uzbl.c')
-rw-r--r--uzbl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/uzbl.c b/uzbl.c
index f8cb48f..0c9dc16 100644
--- a/uzbl.c
+++ b/uzbl.c
@@ -392,11 +392,11 @@ load_uri (WebKitWebView * web_view, const gchar *param) {
static void
search_text (WebKitWebView *page, const char *param) {
if ((param) && (param[0] != '\0')) {
- printf("\nima param!!!\n");
strcpy(searchtx, param);
}
if (searchtx[0] != '\0') {
- printf ("\n\nsearching: %s\n\n", searchtx);
+ printf ("Searching: %s\n", searchtx);
+ webkit_web_view_unmark_text_matches (page);
webkit_web_view_mark_text_matches (page, searchtx, FALSE, 0);
webkit_web_view_set_highlight_text_matches (page, TRUE);
webkit_web_view_search_text (page, searchtx, FALSE, TRUE, TRUE);