mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-12-02 08:22:22 +00:00
Fix xref to correctly display Windows absolute filenames
* lisp/progmodes/xref.el (xref--group-name-for-display): Use `file-name-absolute-p' instead of faking it. (Discussed in bug#59628.)
This commit is contained in:
parent
bacba02e5c
commit
41d2365d58
@ -1165,7 +1165,7 @@ to that style. Otherwise it is returned unchanged."
|
||||
(cl-ecase xref-file-name-display
|
||||
(abs group)
|
||||
(nondirectory
|
||||
(if (string-match-p "\\`~?/" group)
|
||||
(if (file-name-absolute-p group)
|
||||
(file-name-nondirectory group)
|
||||
group))
|
||||
(project-relative
|
||||
|
Loading…
Reference in New Issue
Block a user