aboutsummaryrefslogtreecommitdiffstats
path: root/src/de/mud/terminal/VDUBuffer.java
diff options
context:
space:
mode:
authorKenny Root <kenny@the-b.org>2008-10-30 20:15:42 +0000
committerKenny Root <kenny@the-b.org>2008-10-30 20:15:42 +0000
commitd13d568d1effb0e9913b1bc8ec4b6d7e4cc0e02d (patch)
tree77525c175c64bebe114582f7656bcbb4552f71e6 /src/de/mud/terminal/VDUBuffer.java
parentf3cdd0eb4229905378b5b5a1a2dd78b27d387862 (diff)
downloadconnectbot-d13d568d1effb0e9913b1bc8ec4b6d7e4cc0e02d.tar.gz
connectbot-d13d568d1effb0e9913b1bc8ec4b6d7e4cc0e02d.tar.bz2
connectbot-d13d568d1effb0e9913b1bc8ec4b6d7e4cc0e02d.zip
* Add icons for PubkeyListActivity and an empty-list hint TextView
* Make sure setMargins in terminal emulation can't be fooled * Don't force ConsoleActivity to run in landscape orientation
Diffstat (limited to 'src/de/mud/terminal/VDUBuffer.java')
-rw-r--r--src/de/mud/terminal/VDUBuffer.java10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/de/mud/terminal/VDUBuffer.java b/src/de/mud/terminal/VDUBuffer.java
index cb77ad6..35dbb49 100644
--- a/src/de/mud/terminal/VDUBuffer.java
+++ b/src/de/mud/terminal/VDUBuffer.java
@@ -615,17 +615,13 @@ public class VDUBuffer {
}
/**
- * Set the scroll margins simultaneously. If they're backwards, swap them.
- * If they're out of bounds, trim them.
+ * Set the scroll margins simultaneously. If they're out of bounds, trim them.
* @param l1 line that is the top
* @param l2 line that is the bottom
*/
public void setMargins(int l1, int l2) {
- if (l1 > l2) {
- int temp = l2;
- l2 = l1;
- l1 = temp;
- }
+ if (l1 > l2)
+ return;
if (l1 < 0)
l1 = 0;