summaryrefslogtreecommitdiffstats
path: root/server-fn.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2007-10-04 19:22:26 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2007-10-04 19:22:26 +0000
commitf2b18ac417285ca03693f93456d469dbfdc532b9 (patch)
treeac071997d48d410cf5c88dd03c0bb941921df7b3 /server-fn.c
parent1f9a8e70d90265de8a3e1b0a981d3ef5b1352e52 (diff)
Don't resize if sx AND sy haven't changed. Also tweak some logging, and reset attrs after clear.
Diffstat (limited to 'server-fn.c')
-rw-r--r--server-fn.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/server-fn.c b/server-fn.c
index 97e0456d..0e8f6242 100644
--- a/server-fn.c
+++ b/server-fn.c
@@ -1,4 +1,4 @@
-/* $Id: server-fn.c,v 1.18 2007-10-04 19:03:51 nicm Exp $ */
+/* $Id: server-fn.c,v 1.19 2007-10-04 19:22:26 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -160,6 +160,9 @@ server_clear_client(struct client *c)
input_store_two(c->out, CODE_CURSORMOVE, i + 1, 1);
input_store_zero(c->out, CODE_CLEARLINE);
}
+ input_store_two(c->out, CODE_CURSORMOVE, s->cy + 1, s->cx + 1);
+ if (s->mode & MODE_CURSOR)
+ input_store_zero(c->out, CODE_CURSORON);
size = BUFFER_USED(c->out) - size;
hdr.type = MSG_DATA;