]> git.eshelyaron.com Git - emacs.git/commit
Handle narrowed buffers in treesit-forward-sentence (bug#76679)
authorJuri Linkov <juri@linkov.net>
Thu, 13 Mar 2025 18:44:54 +0000 (20:44 +0200)
committerEshel Yaron <me@eshelyaron.com>
Sat, 15 Mar 2025 15:28:21 +0000 (16:28 +0100)
commit6943de8aeb9b35d943d61121e617121c9f4fcf06
tree00a0f1c5bb574012f881ac3349b6e074df722803
parent22a8ee50e8aa4784a981b09835da7e82e529822c
Handle narrowed buffers in treesit-forward-sentence (bug#76679)

* lisp/treesit.el (treesit-forward-sentence): When no more
sentences are found, move to the end of the buffer or to
the range boundary at the 'treesit-parser' overlay's end.

(cherry picked from commit 59a67dcde4ecf8b8c346164f2d2cf90905762350)
lisp/treesit.el