diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2017-03-09 22:00:47 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2017-03-09 22:00:47 +0000 |
commit | fb609c3060a8ad3d41b35e84173e4da397156844 (patch) | |
tree | 9ce2761830d51ddd12517f9a1c71ed27d79a755f /usr.bin | |
parent | 2bac25e3ea3fcfff03a0e6bfae0e9ef2b0b55a79 (diff) |
Clear the bracket paste mode when in the command prompt.
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/tmux/server-client.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/usr.bin/tmux/server-client.c b/usr.bin/tmux/server-client.c index bc36547bc30..10f268a05c4 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.214 2017/03/09 17:06:35 nicm Exp $ */ +/* $OpenBSD: server-client.c,v 1.215 2017/03/09 22:00:46 nicm Exp $ */ /* * Copyright (c) 2009 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -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); |