From ebd2640abb04febcb5aabe482c30ee857f73ed2c Mon Sep 17 00:00:00 2001 From: Po Lu Date: Wed, 11 Sep 2024 13:25:48 +0800 Subject: [PATCH] * src/treesit.h (struct Lisp_TS_Parser): Correct merge error. (cherry picked from commit a139c3d6d888219bb3cb3c0c5a3eb6268c9b7a29) --- src/treesit.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/treesit.h b/src/treesit.h index cd84fa358c5..e20611eac67 100644 --- a/src/treesit.h +++ b/src/treesit.h @@ -86,6 +86,10 @@ struct Lisp_TS_Parser associated buffer. This is for parsers created by treesit-parse-string, which uses a hidden temp buffer. */ bool need_to_gc_buffer; + /* This field is set to true when treesit_ensure_parsed runs, to + prevent infinite recursion due to calling after change + functions. */ + bool within_reparse; }; /* A wrapper around a tree-sitter node. */ -- 2.39.2