summaryrefslogtreecommitdiffstats
path: root/server-fn.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2007-11-22 18:09:43 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2007-11-22 18:09:43 +0000
commit18d72e69289fa3dbdb0766ea7f9c0ff8908626b9 (patch)
treedb3fca1dba3a1041c902764f32b2fcdf2cd915c2 /server-fn.c
parent4930e894c278a9267861ccf3db231d97d2208741 (diff)
Partial copy mode. Currently does the same as scroll mode but using a cursor. Also fix bug where resizing would leave crap lying around.
Diffstat (limited to 'server-fn.c')
-rw-r--r--server-fn.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/server-fn.c b/server-fn.c
index 27a43a41..f9866da0 100644
--- a/server-fn.c
+++ b/server-fn.c
@@ -1,4 +1,4 @@
-/* $Id: server-fn.c,v 1.30 2007-11-22 09:11:20 nicm Exp $ */
+/* $Id: server-fn.c,v 1.31 2007-11-22 18:09:43 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -175,8 +175,13 @@ server_clear_client(struct client *c)
input_store_zero(c->out, CODE_CLEARLINE);
}
input_store_two(c->out, CODE_CURSORMOVE, s->cy + 1, s->cx + 1);
- if (!(s->mode & MODE_NOCURSOR) && s->mode & MODE_CURSOR)
- input_store_zero(c->out, CODE_CURSORON);
+ if (s->mode & MODE_BACKGROUND) {
+ if (s->mode & MODE_BGCURSOR)
+ input_store_zero(c->out, CODE_CURSORON);
+ } else {
+ if (s->mode & MODE_CURSOR)
+ input_store_zero(c->out, CODE_CURSORON);
+ }
size = BUFFER_USED(c->out) - size;
hdr.type = MSG_DATA;