diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2007-11-21 13:11:41 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2007-11-21 13:11:41 +0000 |
commit | 9a6e47cfa8b7ebac8bebc7c2027fd72bee9d38ab (patch) | |
tree | 31a82c492c937f7aae181b906a47d97378c3e813 /server-msg.c | |
parent | 9b9ceac657c76ed9fe76f76f3276c1d05593942c (diff) |
Initial history support.
Diffstat (limited to 'server-msg.c')
-rw-r--r-- | server-msg.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/server-msg.c b/server-msg.c index 329bfb3e..d75f23ba 100644 --- a/server-msg.c +++ b/server-msg.c @@ -1,4 +1,4 @@ -/* $Id: server-msg.c,v 1.33 2007-11-20 18:11:37 nicm Exp $ */ +/* $Id: server-msg.c,v 1.34 2007-11-21 13:11:41 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -236,8 +236,9 @@ server_msg_fn_resize(struct hdr *hdr, struct client *c) int server_msg_fn_keys(struct hdr *hdr, struct client *c) { - int key; - size_t size; + struct window *w = c->session->curw->window; + int key; + size_t size; if (hdr->size & 0x1) fatalx("bad MSG_KEYS size"); @@ -258,10 +259,11 @@ server_msg_fn_keys(struct hdr *hdr, struct client *c) continue; } - if (key == prefix_key) + if (key == prefix_key) { c->flags |= CLIENT_PREFIX; - else - input_translate_key(c->session->curw->window->out, key); + continue; + } + window_key(w, key); } return (0); |