From c70bd0e3fe9c2f5b1fcdce7939c07449f8a5ec4c Mon Sep 17 00:00:00 2001 From: Yuan Fu Date: Fri, 13 Sep 2024 00:23:13 -0700 Subject: [PATCH] Fix tree-sitter indent preset prev-adaptive-prefix * lisp/treesit.el (treesit-simple-indent-presets): Use looking-at so the call to match-string has the match data to work with. --- lisp/treesit.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/treesit.el b/lisp/treesit.el index 3ac8575aad4..e0bcbe965c6 100644 --- a/lisp/treesit.el +++ b/lisp/treesit.el @@ -1647,7 +1647,7 @@ See `treesit-simple-indent-presets'.") (goto-char bol) (setq this-line-has-prefix - (and (looking-at-p adaptive-fill-regexp) + (and (looking-at adaptive-fill-regexp) (not (string-match-p (rx bos (* whitespace) eos) (match-string 0))))) -- 2.30.2