diff --git a/termite.cc b/termite.cc index 55b79e4..5e0cc97 100644 --- a/termite.cc +++ b/termite.cc @@ -948,7 +948,7 @@ gboolean entry_key_press_cb(GtkEntry *entry, GdkEventKey *event, keybind_info *i } switch (event->keyval) { case GDK_KEY_BackSpace: - if (info->panel.mode == overlay_mode::urlselect) { + if (info->panel.mode == overlay_mode::urlselect && info->panel.fulltext) { size_t slen = strlen(info->panel.fulltext); if (info->panel.fulltext != nullptr && slen > 0) info->panel.fulltext[slen-1] = '\0';