Fix treesit-default-defun-skipper (bug#66711)
* lisp/treesit.el: (treesit-default-defun-skipper): Add bol to the rx pattern.
This commit is contained in:
parent
9874561f39
commit
d2c4b926ac
1 changed files with 1 additions and 1 deletions
|
@ -1962,7 +1962,7 @@ the current line if the beginning of the defun is indented."
|
||||||
(forward-line 1))
|
(forward-line 1))
|
||||||
;; Moving backward, but there are some whitespace (and only
|
;; Moving backward, but there are some whitespace (and only
|
||||||
;; whitespace) between point and BOL: go back to BOL.
|
;; whitespace) between point and BOL: go back to BOL.
|
||||||
((looking-back (rx (+ (or " " "\t")))
|
((looking-back (rx bol (+ (or " " "\t")))
|
||||||
(line-beginning-position))
|
(line-beginning-position))
|
||||||
(beginning-of-line))))
|
(beginning-of-line))))
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue