]> git.localhorst.tv Git - blank.git/blobdiff - src/io/token.cpp
make buttons configurable
[blank.git] / src / io / token.cpp
index 5e734ad573b634ed4fcf101c89735f7c64dda4b2..db5c986fb32f5e53d71272d8cb21760f2ec67e0e 100644 (file)
@@ -191,6 +191,9 @@ TokenStreamReader::TokenStreamReader(istream &in)
 
 
 bool TokenStreamReader::HasMore() {
+       if (cached) {
+               return true;
+       }
        while (in.HasMore()) {
                if (in.Next().type != Token::COMMENT) {
                        cached = true;