summaryrefslogtreecommitdiff
path: root/lisp/progmodes/xref.el
diff options
context:
space:
mode:
authorJuanma Barranquero <lekktu@gmail.com>2022-11-27 12:32:04 +0100
committerJuanma Barranquero <lekktu@gmail.com>2022-11-27 14:20:22 +0100
commit41d2365d58119421439ddedd16d11c53447b09fc (patch)
treed7d6f0f45768673f6a2bf2e1eff9eac2baad91d2 /lisp/progmodes/xref.el
parentbacba02e5c7fe69e79c9ba3d65de851f8ccb86bb (diff)
downloademacs-41d2365d58119421439ddedd16d11c53447b09fc.tar.gz
emacs-41d2365d58119421439ddedd16d11c53447b09fc.tar.bz2
emacs-41d2365d58119421439ddedd16d11c53447b09fc.zip
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.)
Diffstat (limited to 'lisp/progmodes/xref.el')
-rw-r--r--lisp/progmodes/xref.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/progmodes/xref.el b/lisp/progmodes/xref.el
index c72041d70f9..9b8d37a28e5 100644
--- a/lisp/progmodes/xref.el
+++ b/lisp/progmodes/xref.el
@@ -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