summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVictor Kareh <[email protected]>2019-02-23 12:21:42 -0500
committermonsta <[email protected]>2019-05-28 12:24:25 +0300
commitb117c5732fa4016e09c2a8b3ec9bb1797634f2a4 (patch)
treeb74cf4bc133c283d777d917784527b08a220becb
parent0ab9dd668d71e81cbc65264d03af21c959598205 (diff)
downloadmate-terminal-b117c5732fa4016e09c2a8b3ec9bb1797634f2a4.tar.bz2
mate-terminal-b117c5732fa4016e09c2a8b3ec9bb1797634f2a4.tar.xz
Retain copied selection when changing tabs
-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 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 [email protected], sync to clibboard */
- if (priv->copy_selection)
+ if (can_copy && priv->copy_selection)
vte_terminal_copy_clipboard(VTE_TERMINAL(screen));
}