Retain copied selection when changing tabs

master-1.22
Victor Kareh 2019-02-23 12:21:42 -05:00 committed by raveit65
parent 5806f5251c
commit 0aa5954350
1 changed files with 2 additions and 3 deletions

View File

@ -1112,8 +1112,7 @@ terminal_window_update_copy_sensitivity (TerminalScreen *screen,
action = gtk_action_group_get_action (priv->action_group, "EditCopy");
gtk_action_set_sensitive (action, can_copy);
/* 24/07/2014 madars.vitolins@gmail.com, sync to clibboard */
if (priv->copy_selection)
if (can_copy && priv->copy_selection)
#if VTE_CHECK_VERSION (0, 50, 0)
vte_terminal_copy_clipboard_format (VTE_TERMINAL(screen), VTE_FORMAT_TEXT);
#else