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)))))