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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xxxterm.c b/xxxterm.c
index b33ee11..3473c61 100644
--- a/xxxterm.c
+++ b/xxxterm.c
@@ -6955,7 +6955,7 @@ cmd_keypress_cb(GtkEntry *w, GdkEventKey *e, struct tab *t)
 		focus_webview(t);
 
 		/* cancel search */
-		if (c[0] == '/' || c[0] == '?')
+		if (c != NULL && (c[0] == '/' || c[0] == '?'))
 			webkit_web_view_unmark_text_matches(t->wv);
 		goto done;
 	}