* lisp/treesit.el (treesit-end-of-defun): Guard arg against nil (bug#62158).
This commit is contained in:
parent
263d6c3853
commit
7a1272168a
1 changed files with 1 additions and 0 deletions
|
@ -1882,6 +1882,7 @@ this function depends on `treesit-defun-type-regexp' and
|
|||
`treesit-defun-skipper'."
|
||||
(interactive "^p\nd")
|
||||
(let ((orig-point (point)))
|
||||
(if (or (null arg) (= arg 0)) (setq arg 1))
|
||||
(catch 'done
|
||||
(dotimes (_ 2) ; Not making progress is better than infloop.
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue