summaryrefslogtreecommitdiff
path: root/ext/syck/token.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/syck/token.c')
-rw-r--r--ext/syck/token.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/syck/token.c b/ext/syck/token.c
index ac9986f..ff192f2 100644
--- a/ext/syck/token.c
+++ b/ext/syck/token.c
@@ -2297,7 +2297,7 @@ yy215:
#line 938
{ if ( YYTOKEN == YYLINEPTR )
{
- if ( blockType == BLOCK_FOLD )
+ if ( blockType == BLOCK_FOLD && qidx > 0 )
{
qidx -= 1;
}