Fix bug: in a PI such as <?test ?pi?>, we got into an incorrect state

on the second ?. This is now properly handled.
This commit is contained in:
Laurence Withers 2006-08-07 12:51:11 +01:00
parent 4eec490403
commit dc6a4cf430
1 changed files with 3 additions and 0 deletions

View File

@ -314,9 +314,12 @@ doBuffer:
callback->PI(buffer2, buffer);
buffer.clear();
state = StateNone;
} else if(ch == '?') {
buffer += L'?';
} else {
buffer += L'?';
buffer += ch;
state = StatePIData;
}
break;