* src/treesit.c (Ftreesit_parser_create): We recently changed something
such that base buffer and indirect buffer appears to use separate
parser-lists. Therefore, creating a parser in one of the buffer
shouldn't reuse the parser in another buffer.
(cherry picked from commit
f322905f6a31deb8da7f3d40a87e5ea097df5a73)
{
struct Lisp_TS_Parser *parser = XTS_PARSER (XCAR (tail));
if (EQ (parser->tag, tag)
- && EQ (parser->language_symbol, language))
+ && EQ (parser->language_symbol, language)
+ && EQ (parser->buffer, buf_orig))
return XCAR (tail);
}
}