You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Skip paths starting with /\ in file link detection #853
I see a variant of the issue from #759 when output has regular expressions like /\r/g
On Windows: (expand-file-name "/\\r/g") -> "//r/g" (/\r/g becomes //r/g)
So i run into the 10 seconds hang again from file-exists-p where Windows reads that as a UNC path then waits for the network lookup of host to time out.
Fix
- (unless (string-prefix-p "//" path)+ ;; So does `/\', as in a regex like `/\r/g': `expand-file-name'+ ;; turns the backslash into a slash.+ (unless (string-match-p "\\`/[/\\]" path)
(if (ghostel--skip-match-p fragments raw active-bounds)
This then skips expand-file-name call and file-exists-p call in unless block
Activity
dakra commentedon Dec 1, 2026
Thanks. Should be fixed on main.
Skip paths starting with /\ in file link detection