From 103748d6adfe1b2d706cb0a1e1a128be5366d655 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Thu, 6 Dec 2007 09:46:23 +0000 Subject: Major reorganisation of screen handling. --- key-bindings.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'key-bindings.c') diff --git a/key-bindings.c b/key-bindings.c index d2f51b25..8889d81a 100644 --- a/key-bindings.c +++ b/key-bindings.c @@ -1,4 +1,4 @@ -/* $Id: key-bindings.c,v 1.22 2007-11-27 19:23:33 nicm Exp $ */ +/* $Id: key-bindings.c,v 1.23 2007-12-06 09:46:22 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott @@ -84,7 +84,7 @@ key_bindings_init(void) { 'S', &cmd_list_sessions_entry, NULL }, { 's', &cmd_list_sessions_entry, NULL }, { 'W', &cmd_list_windows_entry, NULL }, - { 'w', &cmd_list_windows_entry, NULL }, + { 'w', &cmd_list_windows_entry, NULL }, { '?', &cmd_list_keys_entry, NULL }, { '/', &cmd_list_keys_entry, NULL }, { 'C', &cmd_new_window_entry, NULL }, @@ -140,7 +140,7 @@ key_bindings_free(void) cmd_free(bd->cmd); xfree(bd); } - + ARRAY_FREE(&key_bindings); } @@ -168,6 +168,7 @@ key_bindings_print(struct cmd_ctx *ctx, const char *fmt, ...) if (w->mode == NULL) { w->mode = &window_more_mode; w->mode->init(w); + server_redraw_window(w); } else if (w->mode != &window_more_mode) return; @@ -202,7 +203,4 @@ key_bindings_dispatch(int key, struct client *c) ctx.flags = CMD_KEY; cmd_exec(bd->cmd, &ctx); - - if (c->session->curw->window->mode == &window_more_mode) - server_redraw_window(c->session->curw->window); } -- cgit