diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2009-05-06 20:00:58 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2009-05-06 20:00:58 +0000 |
commit | 899472e68fab7de8c04ef88b0b0b04161a393fec (patch) | |
tree | 4f36315cb00d16475c2205285ca60f408e0db167 | |
parent | bc3ab78694deb23294414c1a7d9c2fded9220497 (diff) |
When computing output result for jump scroll purposes, do not count LF
as moving the cursor one charcell right before scrolling.
-rw-r--r-- | sys/dev/wscons/wsemul_sun.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/wscons/wsemul_sun.c b/sys/dev/wscons/wsemul_sun.c index 691921cf71f..923cf8b196d 100644 --- a/sys/dev/wscons/wsemul_sun.c +++ b/sys/dev/wscons/wsemul_sun.c @@ -1,4 +1,4 @@ -/* $OpenBSD: wsemul_sun.c,v 1.23 2007/11/27 16:37:27 miod Exp $ */ +/* $OpenBSD: wsemul_sun.c,v 1.24 2009/05/06 20:00:57 miod Exp $ */ /* $NetBSD: wsemul_sun.c,v 1.11 2000/01/05 11:19:36 drochner Exp $ */ /* @@ -630,6 +630,8 @@ wsemul_sun_jump_scroll(struct wsemul_sun_emuldata *edp, const u_char *data, if (pos >= edp->ncols) pos = edp->ncols - 1; break; + case ASCII_LF: + break; default: if (++pos >= edp->ncols) { pos = 0; |