diff options
author | Marco Peereboom <marco@conformal.com> | 2010-12-27 05:07:11 +0000 |
---|---|---|
committer | Marco Peereboom <marco@conformal.com> | 2010-12-27 05:07:11 +0000 |
commit | b8c934c8b48c7766eeb1feb3ade27eb341738e4d (patch) | |
tree | 29f7b2b78c92f91b1f47b76314f42d8949f49ffb | |
parent | 0132ddea0662fb1609c3e2110ca9e164021c8182 (diff) | |
download | xombrero-b8c934c8b48c7766eeb1feb3ade27eb341738e4d.tar.gz |
fix search not cleaning up itself as found by jy-p
-rw-r--r-- | xxxterm.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/xxxterm.c b/xxxterm.c index 1afb38b..64f57d0 100644 --- a/xxxterm.c +++ b/xxxterm.c @@ -3303,8 +3303,10 @@ cmd_keyrelease_cb(GtkEntry *w, GdkEventKey *e, struct tab *t) if (c[0] == ':') goto done; - if (strlen(c) == 1) + if (strlen(c) == 1) { + webkit_web_view_unmark_text_matches(t->wv); goto done; + } if (c[0] == '/') forward = TRUE; @@ -3421,6 +3423,10 @@ cmd_keypress_cb(GtkEntry *w, GdkEventKey *e, struct tab *t) case GDK_Escape: gtk_widget_hide(t->cmd); gtk_widget_grab_focus(GTK_WIDGET(t->wv)); + + /* cancel search */ + if (c[0] == '/' || c[0] == '?') + webkit_web_view_unmark_text_matches(t->wv); goto done; } |