summaryrefslogtreecommitdiffstats
path: root/key-bindings.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2009-02-13 20:19:30 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2009-02-13 20:19:30 +0000
commit47e6b2725d51320928e5b0ab5c7e488920edd83d (patch)
tree3c99b63e6625786009d13bab2550f2b20d8b4238 /key-bindings.c
parentb2282f243b44975618cd4626b23d41aa1037813c (diff)
Reset mode before adding text.
Diffstat (limited to 'key-bindings.c')
-rw-r--r--key-bindings.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/key-bindings.c b/key-bindings.c
index 4d2295a4..5f3c9b16 100644
--- a/key-bindings.c
+++ b/key-bindings.c
@@ -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);