xref-edit--prepare-buffer: Prohibit insertion before group headers too

* lisp/progmodes/xref.el (xref-edit--prepare-buffer): Do the
previous change for group headers as well (no insertion in front).
This commit is contained in:
Dmitry Gutov
2026-04-02 01:49:26 +03:00
parent 99f2e353e7
commit 02c95dd92c

View File

@@ -1481,7 +1481,8 @@ between them by typing in the minibuffer with completion."
match)
(while (setq match (text-property-search-forward 'xref-group))
(add-text-properties (prop-match-beginning match) (prop-match-end match)
'(read-only t)))
'( read-only t
front-sticky t)))
(goto-char (point-min))
(while (setq match (text-property-search-forward 'xref-item))
(let ((line-number-end (save-excursion