aboutsummaryrefslogtreecommitdiff
path: root/key-bindings.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2007-12-06 10:04:43 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2007-12-06 10:04:43 +0000
commit7dc18f68e3dd016d381bef43b943c0c482057e57 (patch)
tree39e3ad8d1ff8dbebde3188ac8541a53b01a5ddbc /key-bindings.c
parent103748d6adfe1b2d706cb0a1e1a128be5366d655 (diff)
downloadrtmux-7dc18f68e3dd016d381bef43b943c0c482057e57.tar.gz
rtmux-7dc18f68e3dd016d381bef43b943c0c482057e57.tar.bz2
rtmux-7dc18f68e3dd016d381bef43b943c0c482057e57.zip
set/reset mode window functions.
Diffstat (limited to 'key-bindings.c')
-rw-r--r--key-bindings.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/key-bindings.c b/key-bindings.c
index 8889d81a..e217d798 100644
--- a/key-bindings.c
+++ b/key-bindings.c
@@ -1,4 +1,4 @@
-/* $Id: key-bindings.c,v 1.23 2007-12-06 09:46:22 nicm Exp $ */
+/* $Id: key-bindings.c,v 1.24 2007-12-06 10:04:42 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -165,11 +165,7 @@ key_bindings_print(struct cmd_ctx *ctx, const char *fmt, ...)
struct window *w = ctx->session->curw->window;
va_list ap;
- if (w->mode == NULL) {
- w->mode = &window_more_mode;
- w->mode->init(w);
- server_redraw_window(w);
- } else if (w->mode != &window_more_mode)
+ if (window_set_mode(w, &window_more_mode) != 0)
return;
va_start(ap, fmt);