Reset mode before adding text.

This commit is contained in:
Nicholas Marriott 2009-02-13 20:19:30 +00:00
parent b2282f243b
commit 47e6b2725d

View File

@ -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> * 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; struct winlink *wl = ctx->cursession->curw;
va_list ap; 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); window_pane_set_mode(wl->window->active, &window_more_mode);
va_start(ap, fmt); va_start(ap, fmt);