mirror of https://github.com/adamdruppe/arsd.git
wtf was i thinking
This commit is contained in:
parent
bb774b90a3
commit
f22cd2d21b
10
terminal.d
10
terminal.d
|
@ -4832,7 +4832,7 @@ class LineGetter {
|
||||||
b = readOne(); // no big deal, just ignore and continue
|
b = readOne(); // no big deal, just ignore and continue
|
||||||
|
|
||||||
nextNumberY:
|
nextNumberY:
|
||||||
if(b >= '0' || b <= '9') {
|
if(b >= '0' && b <= '9') {
|
||||||
y *= 10;
|
y *= 10;
|
||||||
y += b - '0';
|
y += b - '0';
|
||||||
} else goto nextEscape;
|
} else goto nextEscape;
|
||||||
|
@ -4841,14 +4841,18 @@ class LineGetter {
|
||||||
if(b != ';')
|
if(b != ';')
|
||||||
goto nextNumberY;
|
goto nextNumberY;
|
||||||
|
|
||||||
nextNumberX:
|
|
||||||
b = readOne();
|
b = readOne();
|
||||||
if(b >= '0' || b <= '9') {
|
nextNumberX:
|
||||||
|
if(b >= '0' && b <= '9') {
|
||||||
x *= 10;
|
x *= 10;
|
||||||
x += b - '0';
|
x += b - '0';
|
||||||
} else goto nextEscape;
|
} else goto nextEscape;
|
||||||
|
|
||||||
b = readOne();
|
b = readOne();
|
||||||
|
// another digit
|
||||||
|
if(b >= '0' && b <= '9')
|
||||||
|
goto nextNumberX;
|
||||||
|
|
||||||
if(b != 'R')
|
if(b != 'R')
|
||||||
goto nextEscape; // it wasn't the right thing it after all
|
goto nextEscape; // it wasn't the right thing it after all
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue