From 55e73e361265c82e4c84bc494cb290bd9df6613e Mon Sep 17 00:00:00 2001 From: nicm Date: Thu, 9 Mar 2017 22:00:46 +0000 Subject: [PATCH] Clear the bracket paste mode when in the command prompt. --- server-client.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/server-client.c b/server-client.c index c983f32f..a2dc79c7 100644 --- a/server-client.c +++ b/server-client.c @@ -1154,6 +1154,10 @@ server_client_reset_state(struct client *c) mode |= MODE_MOUSE_BUTTON; } + /* Clear bracketed paste mode if at the prompt. */ + if (c->prompt_string != NULL) + mode &= ~MODE_BRACKETPASTE; + /* Set the terminal mode and reset attributes. */ tty_update_mode(&c->tty, mode, s); tty_reset(&c->tty);