From 9eda6c591383ce33090585fbe321f288ba475859 Mon Sep 17 00:00:00 2001 From: Jelle van der Waa Date: Fri, 1 Dec 2017 18:50:06 +0100 Subject: [PATCH] Revert "Merge pull request #546 from ThrosturX/master" This reverts commit 86db8ab13339e4b513ddcbc0258c19d959f0be60, reversing changes made to 1f9ab29f74e6e4aded1941d53a19495f5460ad87. --- termite.cc | 7 ------- 1 file changed, 7 deletions(-) diff --git a/termite.cc b/termite.cc index fb945ac..ba1fc30 100644 --- a/termite.cc +++ b/termite.cc @@ -564,13 +564,6 @@ static void move_to_row_start(VteTerminal *vte, select_info *select, long row) { } static void open_selection(char *browser, VteTerminal *vte) { - // If the terminal has been opened, but no selection has ever been made - // , a segfault will occur upon attempting to make the unique pointer - // within vte_terminal_get_selection(vte) (unless if there is no browser). - if (!vte_terminal_get_has_selection(vte)) { - g_printerr("no selection to open\n"); - return - } if (browser) { auto selection = make_unique(vte_terminal_get_selection(vte), g_free); if (selection && *selection) {