mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-11-21 06:55:39 +00:00
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
@ -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…
Reference in New Issue
Block a user