[vim/vim] runtime(netrw): Fix reading UNC paths on windows (PR #19015)

5 views
Skip to first unread message

tao

unread,
Dec 25, 2025, 4:13:08 AM (yesterday) Dec 25
to vim/vim, Subscribed

Problem:
When Vim is launched with a UNC directory, netrw treats it as a relative path and compose it again.

Solution:
This is due to exists("g:netrw_cygwin") always being true. We can directly use g:netrw_cygwin.

Reproduction step:

  1. launch PowerShell.
  2. cd \\localhost\C$
  3. vim .

You can view, comment on, or merge this pull request online at:

  https://github.com/vim/vim/pull/19015

Commit Summary

  • 2de6555 runtime(netrw): Fix reading UNC paths on windows

File Changes

(1 file)

Patch Links:


Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/19015@github.com>

tao

unread,
12:29 AM (4 hours ago) 12:29 AM
to vim/vim, Subscribed
ntdiary left a comment (vim/vim#19015)

The failing check is introduced by PR #19006, I've left a comment there and raised another tiny PR #19018. :)


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/19015/c3692155893@github.com>

Reply all
Reply to author
Forward
0 new messages