diff options
author | ache <ache@FreeBSD.org> | 1994-11-21 14:36:02 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 1994-11-21 14:36:02 +0000 |
commit | 8e0cf3f7d8942f310db4dc93ef24d3ece83d9925 (patch) | |
tree | 67afbe304627562cd260e122d617907b723905e4 /sys/isa/syscons.c | |
parent | 1d76dd7613270ec93a191cb7fc5e4f9e395db1ff (diff) | |
download | FreeBSD-src-8e0cf3f7d8942f310db4dc93ef24d3ece83d9925.zip FreeBSD-src-8e0cf3f7d8942f310db4dc93ef24d3ece83d9925.tar.gz |
Attempt to fix scroll forward/ scroll backward bug bringed by vi,
'S' and 'T' use count 1 in fillw() instead of count == n.
Diffstat (limited to 'sys/isa/syscons.c')
-rw-r--r-- | sys/isa/syscons.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/isa/syscons.c b/sys/isa/syscons.c index a9ae28c..b85b999 100644 --- a/sys/isa/syscons.c +++ b/sys/isa/syscons.c @@ -35,7 +35,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: syscons.c,v 1.77 1994/11/17 22:03:16 sos Exp $ + * $Id: syscons.c,v 1.78 1994/11/19 23:17:48 ache Exp $ */ #include "sc.h" @@ -1790,8 +1790,8 @@ scan_esc(scr_stat *scp, u_char c) sizeof(u_short)); fillw(scp->term.cur_attr | scr_map[0x20], scp->crt_base + scp->xsize * - (scp->ysize - 1), - scp->xsize); + (scp->ysize - n), + scp->xsize * n); break; case 'T': /* scroll down n lines */ @@ -1803,7 +1803,7 @@ scan_esc(scr_stat *scp, u_char c) scp->xsize * (scp->ysize - n) * sizeof(u_short)); fillw(scp->term.cur_attr | scr_map[0x20], - scp->crt_base, scp->xsize); + scp->crt_base, scp->xsize * n); break; case 'X': /* delete n characters in line */ |