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:
@@ -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)))))
|
||||
|
||||
Reference in New Issue
Block a user