aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2009-02-21 19:25:58 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2009-02-21 19:25:58 +0000
commit3969b59ae5f9a40ac2b869b7b58c4fc83fc25749 (patch)
tree1a1fd776d48b1869bde580131906d7b0ae2d04f8
parent5b7e882bf663a1d21b8c09cac127894308cf5f75 (diff)
downloadrtmux-3969b59ae5f9a40ac2b869b7b58c4fc83fc25749.tar.gz
rtmux-3969b59ae5f9a40ac2b869b7b58c4fc83fc25749.tar.bz2
rtmux-3969b59ae5f9a40ac2b869b7b58c4fc83fc25749.zip
Don't turn cursor off unless actually drawing something.
-rw-r--r--screen-write.c5
-rw-r--r--tty-write.c4
2 files changed, 4 insertions, 5 deletions
diff --git a/screen-write.c b/screen-write.c
index 4553b2a0..93417e0d 100644
--- a/screen-write.c
+++ b/screen-write.c
@@ -1,4 +1,4 @@
-/* $Id: screen-write.c,v 1.33 2009-02-11 17:04:39 nicm Exp $ */
+/* $Id: screen-write.c,v 1.34 2009-02-21 19:25:58 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -34,9 +34,6 @@ screen_write_start(
ctx->s = wp->screen;
else
ctx->s = s;
-
- if (ctx->s != NULL)
- tty_write_mode(ctx->wp, ctx->s->mode & ~MODE_CURSOR);
}
/* Finish writing. */
diff --git a/tty-write.c b/tty-write.c
index ffbb4673..4e153fe7 100644
--- a/tty-write.c
+++ b/tty-write.c
@@ -1,4 +1,4 @@
-/* $Id: tty-write.c,v 1.11 2009-02-11 07:02:34 nicm Exp $ */
+/* $Id: tty-write.c,v 1.12 2009-02-21 19:25:58 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -53,6 +53,8 @@ tty_vwrite_cmd(struct window_pane *wp, enum tty_cmd cmd, va_list ap)
continue;
if (c->session->curw->window == wp->window) {
+ tty_update_mode(&c->tty, c->tty.mode & ~MODE_CURSOR);
+
va_copy(aq, ap);
tty_vwrite(&c->tty, wp, cmd, aq);
va_end(aq);