From b117c5732fa4016e09c2a8b3ec9bb1797634f2a4 Mon Sep 17 00:00:00 2001 From: Victor Kareh Date: Sat, 23 Feb 2019 12:21:42 -0500 Subject: Retain copied selection when changing tabs --- src/terminal-window.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/terminal-window.c b/src/terminal-window.c index 673932a..2695549 100644 --- a/src/terminal-window.c +++ b/src/terminal-window.c @@ -1152,7 +1152,7 @@ terminal_window_update_size_to_menu (TerminalWindow *window) static void terminal_window_update_copy_sensitivity (TerminalScreen *screen, - TerminalWindow *window) + TerminalWindow *window) { TerminalWindowPrivate *priv = window->priv; GtkAction *action; @@ -1166,8 +1166,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) vte_terminal_copy_clipboard(VTE_TERMINAL(screen)); } -- cgit v1.2.1