diff options
Diffstat (limited to 'src/de')
-rw-r--r-- | src/de/mud/terminal/vt320.java | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/src/de/mud/terminal/vt320.java b/src/de/mud/terminal/vt320.java index bdafefd..f628cd4 100644 --- a/src/de/mud/terminal/vt320.java +++ b/src/de/mud/terminal/vt320.java @@ -92,13 +92,13 @@ public abstract class vt320 extends VDUBuffer implements VDUInput { char c; for (int i = 0; i < len; i++) { - c = s[start + i]; - // Shortcut for my favorite ASCII - if (c <= 0x7F) { - if (lastChar != -1) - putChar((char) lastChar, false); - lastChar = c; - } else if (!Character.isLowSurrogate(c) && !Character.isHighSurrogate(c)) { + c = s[start + i]; + // Shortcut for my favorite ASCII + if (c <= 0x7F) { + if (lastChar != -1) + putChar((char) lastChar, false); + lastChar = c; + } else if (!Character.isLowSurrogate(c) && !Character.isHighSurrogate(c)) { if (Character.getType(c) == Character.NON_SPACING_MARK) { if (lastChar != -1) { char nc = Precomposer.precompose((char) lastChar, c); @@ -106,11 +106,11 @@ public abstract class vt320 extends VDUBuffer implements VDUInput { lastChar = -1; } } else { - if (lastChar != -1) + if (lastChar != -1) putChar((char) lastChar, false); lastChar = c; } - } + } } if (lastChar != -1) @@ -1525,7 +1525,6 @@ public void setScreenSize(int c, int r, boolean broadcast) { // //return; // } - switch (term_state) { case TSTATE_DATA: /* FIXME: we shouldn't use chars with bit 8 set if ibmcharset. |