From 680abf1846a21c9a3a7e23f99938922bf0ff19d1 Mon Sep 17 00:00:00 2001 From: nicm Date: Fri, 23 Oct 2015 23:46:36 +0000 Subject: [PATCH] Pasting mouse escape sequences is unlikely, so skip them when working out whether the user is pasting. --- usr.bin/tmux/server-client.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.bin/tmux/server-client.c b/usr.bin/tmux/server-client.c index c339b658569..1cfd2a00d5c 100644 --- a/usr.bin/tmux/server-client.c +++ b/usr.bin/tmux/server-client.c @@ -1,4 +1,4 @@ -/* $OpenBSD: server-client.c,v 1.158 2015/10/22 11:00:51 nicm Exp $ */ +/* $OpenBSD: server-client.c,v 1.159 2015/10/23 23:46:36 nicm Exp $ */ /* * Copyright (c) 2009 Nicholas Marriott @@ -598,7 +598,7 @@ server_client_handle_key(struct client *c, int key) m->valid = 0; /* Treat everything as a regular key when pasting is detected. */ - if (server_client_assume_paste(s)) { + if (!KEYC_IS_MOUSE(key) && server_client_assume_paste(s)) { if (!(c->flags & CLIENT_READONLY)) window_pane_key(wp, c, s, key, m); return; -- 2.20.1