From 3969b59ae5f9a40ac2b869b7b58c4fc83fc25749 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Sat, 21 Feb 2009 19:25:58 +0000 Subject: [PATCH] Don't turn cursor off unless actually drawing something. --- screen-write.c | 5 +---- tty-write.c | 4 +++- 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 @@ -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 @@ -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);