aboutsummaryrefslogtreecommitdiffstats
path: root/src/de/mud
diff options
context:
space:
mode:
authorKenny Root <kenny@the-b.org>2008-10-30 09:48:46 +0000
committerKenny Root <kenny@the-b.org>2008-10-30 09:48:46 +0000
commitf20f215c19d44b14678cb7cab1aa02b657d0cd29 (patch)
tree9584046b6a0f666ee0ea3188206e2567a4da7fe2 /src/de/mud
parentd4a65aaf7ec52e8bf32917237260a0727e51fe58 (diff)
downloadconnectbot-f20f215c19d44b14678cb7cab1aa02b657d0cd29.tar.gz
connectbot-f20f215c19d44b14678cb7cab1aa02b657d0cd29.tar.bz2
connectbot-f20f215c19d44b14678cb7cab1aa02b657d0cd29.zip
Okay, you're not going to believe this:
* Fixed yet another error with scroll regions; this time with cursor movement into them.
Diffstat (limited to 'src/de/mud')
-rw-r--r--src/de/mud/terminal/vt320.java8
1 files changed, 2 insertions, 6 deletions
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;