diff options
author | Victor Kareh <[email protected]> | 2019-02-23 12:21:42 -0500 |
---|---|---|
committer | raveit65 <[email protected]> | 2019-04-23 11:35:59 +0200 |
commit | 0aa5954350341dca1d262915b956b3bc2ee7577d (patch) | |
tree | a418c13d80aaf87a7d47735807eaabe908745111 | |
parent | 5806f5251cde77e3aa915b38946c5bc616d0fc2c (diff) | |
download | mate-terminal-0aa5954350341dca1d262915b956b3bc2ee7577d.tar.bz2 mate-terminal-0aa5954350341dca1d262915b956b3bc2ee7577d.tar.xz |
Retain copied selection when changing tabs
-rw-r--r-- | src/terminal-window.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/terminal-window.c b/src/terminal-window.c index 8fc6c1a..b5f5e5f 100644 --- a/src/terminal-window.c +++ b/src/terminal-window.c @@ -1098,7 +1098,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; @@ -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 [email protected], 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 |