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.
This commit is contained in:
parent
272df33fb8
commit
c70bd0e3fe
1 changed files with 1 additions and 1 deletions
|
@ -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)))))
|
||||
|
|
Loading…
Add table
Reference in a new issue