summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorVictor Kareh <[email protected]>2019-02-23 12:21:42 -0500
committerVictor Kareh <[email protected]>2019-03-12 07:33:56 -0400
commit773ef179210ecc4572ba9df1887ba79ac1eb1876 (patch)
tree8d72f83f58ddab4e6ae247276be1e10176c98b6b /src
parentb703eef3e7739bac4d1d7d1956c3c6f4d8e01a8e (diff)
downloadmate-terminal-773ef179210ecc4572ba9df1887ba79ac1eb1876.tar.bz2
mate-terminal-773ef179210ecc4572ba9df1887ba79ac1eb1876.tar.xz
Retain copied selection when changing tabs
Diffstat (limited to 'src')
-rw-r--r--src/terminal-window.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/terminal-window.c b/src/terminal-window.c
index 8b28fbc..7d623c0 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