Skip to content
  • Brian Ashworth's avatar
    parse_text: return if next is UTF8_INVALID · 0d731c6a
    Brian Ashworth authored and Drew DeVault's avatar Drew DeVault committed
    
    
    In the underscore case, the next character is retrieved to check
    whether the underscore is at a word break. However, if this character
    is UTF8_INVALID, the call to parser_pushch will be a noop. This
    results in the loop continuing on further than it should. This just
    adds a check to see if next is UTF8_INVALID and returns if it is.
    
    Signed-off-by: default avatarBrian Ashworth <bosrsf04@gmail.com>
    0d731c6a