diff options
author | Yuan Fu <casouri@gmail.com> | 2023-02-17 14:21:49 -0800 |
---|---|---|
committer | Yuan Fu <casouri@gmail.com> | 2023-02-17 14:27:23 -0800 |
commit | 0a5615669a4f5d7e2db3c4117f3c2440e9c4cfd5 (patch) | |
tree | 97ed6e6fa97f76b894a886b3bd896d66d2b5bf43 /lisp/emacs-lisp/generate-lisp-file.el | |
parent | 5b34fc07085a4ec636124756d09dcc3be8414eb8 (diff) | |
download | emacs-0a5615669a4f5d7e2db3c4117f3c2440e9c4cfd5.tar.gz emacs-0a5615669a4f5d7e2db3c4117f3c2440e9c4cfd5.tar.bz2 emacs-0a5615669a4f5d7e2db3c4117f3c2440e9c4cfd5.zip |
Don't completely clip into visible range in treesit_record_change
(Bug#61369)
From
min (visible_end, max (visible_beg, new_end_byte)) - visible_beg
to
max (visible_beg, new_end_byte) - visible_beg
* src/treesit.c (treesit_record_change): We don't clip the new end
into the visible range anymore. If you think of it, when inserting in
a narrowed region, the visible region is always extended to
accommodate more text, rather than pushing text at the end to keep the
size of the visible region.
Diffstat (limited to 'lisp/emacs-lisp/generate-lisp-file.el')
0 files changed, 0 insertions, 0 deletions