From f20f215c19d44b14678cb7cab1aa02b657d0cd29 Mon Sep 17 00:00:00 2001 From: Kenny Root Date: Thu, 30 Oct 2008 09:48:46 +0000 Subject: Okay, you're not going to believe this: * Fixed yet another error with scroll regions; this time with cursor movement into them. --- src/de/mud/terminal/vt320.java | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'src/de/mud/terminal') diff --git a/src/de/mud/terminal/vt320.java b/src/de/mud/terminal/vt320.java index ba636ae..e06915b 100644 --- a/src/de/mud/terminal/vt320.java +++ b/src/de/mud/terminal/vt320.java @@ -2340,9 +2340,7 @@ public abstract class vt320 extends VDUBuffer implements VDUInput { { int limit; /* FIXME: xterm only cares about 0 and topmargin */ - if (R > bm) - limit = bm - 1; - else if (R >= tm) { + if (R >= tm) { limit = tm; } else limit = 0; @@ -2360,9 +2358,7 @@ public abstract class vt320 extends VDUBuffer implements VDUInput { /* cursor down n (1) times */ { int limit; - if (R < tm) - limit = tm - 1; - else if (R <= bm) { + if (R <= bm) { limit = bm; } else limit = rows - 1; -- cgit v1.2.3