mirror of
https://github.com/tmux/tmux.git
synced 2024-11-18 18:38:54 +00:00
Don't turn cursor off unless actually drawing something.
This commit is contained in:
parent
5b7e882bf6
commit
3969b59ae5
@ -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. */
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user