Fix comment parsing error in CommandManager

This commit is contained in:
Maxime Coste 2014-07-15 13:15:21 +01:00
parent ac5cbba0ae
commit e6699c66ed

View File

@ -172,8 +172,11 @@ void skip_blanks_and_comments(StringView base, ByteCount& pos)
pos += 2;
else if (base[pos] == '#')
{
while (pos != length and base[pos] != '\n')
++pos;
while (pos != length)
{
if (base[pos++] == '\n')
break;
}
}
else
break;