Don't turn cursor off unless actually drawing something.

This commit is contained in:
Nicholas Marriott 2009-02-21 19:25:58 +00:00
parent 5b7e882bf6
commit 3969b59ae5
2 changed files with 4 additions and 5 deletions

View File

@ -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. */

View File

@ -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);