termite: fix vte patch "expose-function-for-getting-the-selected-text" (#122467)

ZHF: #122042
This commit is contained in:
ptrhlm 2021-05-11 00:54:08 +02:00 committed by GitHub
parent 711ad46bd6
commit 8e89366c2b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -21,7 +21,7 @@
+vte_terminal_get_selection(VteTerminal *terminal) noexcept
+{
+ g_return_val_if_fail(VTE_IS_TERMINAL(terminal), NULL);
+ return g_strdup (IMPL(terminal)->m_selection[VTE_SELECTION_PRIMARY]->str);
+ return g_strdup (IMPL(terminal)->m_selection[vte::to_integral(vte::platform::ClipboardType::PRIMARY)]->str);
+}
+
/**