diff options
-rw-r--r-- | MLKStream.m | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/MLKStream.m b/MLKStream.m index 01ed40e..e59dee4 100644 --- a/MLKStream.m +++ b/MLKStream.m @@ -63,6 +63,15 @@ uint8_t *buffer; int i; unichar retval; + + if (_charCached) + { + char ch; + ch = _cachedChar; + _cachedChar = 0; + _charCached = NO; + return ch; + } buffer = NULL; for (i = 0; i++;) |