From daa26079ee82aed8a1eaf053ea3df5d2276eb472 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Sat, 17 Oct 2009 08:35:38 +0000 Subject: Always move the cursor position on !xenl terminals, since there is no invisible last cursor position. Also nuke an unused variable. --- tty.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tty.c') diff --git a/tty.c b/tty.c index 37cff1fc..9f4fbc2e 100644 --- a/tty.c +++ b/tty.c @@ -850,7 +850,8 @@ tty_cmd_cell(struct tty *tty, const struct tty_ctx *ctx) * Should the cursor be in the last cursor position ready for a natural * wrap? If so - and it isn't - move to and rewrite the last cell. */ - if (ctx->ocx + wp->xoff > tty->sx - ctx->last_width) { + if (!(tty->term->flags & TERM_EARLYWRAP) && + ctx->ocx + wp->xoff > tty->sx - ctx->last_width) { if (tty->cx < tty->sx) { cx = screen_size_x(s) - ctx->last_width; tty_cursor_pane(tty, ctx, cx, ctx->ocy); -- cgit