mirror of
https://github.com/tmux/tmux.git
synced 2024-12-13 01:48:47 +00:00
Reset mode before adding text.
This commit is contained in:
parent
b2282f243b
commit
47e6b2725d
@ -1,4 +1,4 @@
|
||||
/* $Id: key-bindings.c,v 1.60 2009-02-13 18:57:55 nicm Exp $ */
|
||||
/* $Id: key-bindings.c,v 1.61 2009-02-13 20:19:30 nicm Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
|
||||
@ -178,6 +178,8 @@ key_bindings_print(struct cmd_ctx *ctx, const char *fmt, ...)
|
||||
struct winlink *wl = ctx->cursession->curw;
|
||||
va_list ap;
|
||||
|
||||
if (wl->window->active->mode != &window_more_mode)
|
||||
window_pane_reset_mode(wl->window->active);
|
||||
window_pane_set_mode(wl->window->active, &window_more_mode);
|
||||
|
||||
va_start(ap, fmt);
|
||||
|
Loading…
Reference in New Issue
Block a user