[vim/vim] runtime(netrw): Fixing global variable initialization on Windows (PR #19287)

2 views
Skip to first unread message

MiguelBarro

unread,
Jan 30, 2026, 8:58:35 AM (3 days ago) Jan 30
to vim/vim, Subscribed

Some default options are initialized as empty:
https://github.com/vim/vim/blob/371583642a5eecc134d285e6df49f5edceeab95c/runtime/pack/dist/opt/netrw/autoload/netrw.vim#L69-L73
preventing them later from getting the rigth value:
https://github.com/vim/vim/blob/371583642a5eecc134d285e6df49f5edceeab95c/runtime/pack/dist/opt/netrw/autoload/netrw.vim#L295-L301
because s:NetrwInit() will only set values for undefined variables:
https://github.com/vim/vim/blob/371583642a5eecc134d285e6df49f5edceeab95c/runtime/pack/dist/opt/netrw/autoload/netrw.vim#L53-L57
After the fix, things were not working so I revamp those functions where the default options were used. Besides:

  • Copying several files with a single command is not possible on Windows and was broken.
  • The code ignored issues associated with the shellslash option.

I extended the netrw testing accordingly.


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

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

Commit Summary

  • 4d549bb test: check local filesystem commands operation
  • 613e656 fix: proper filesystem commands initialization for Windows

File Changes

(3 files)

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/19287@github.com>

MiguelBarro

unread,
Feb 1, 2026, 7:55:22 PM (yesterday) Feb 1
to vim/vim, Push

@MiguelBarro pushed 1 commit.

  • c258a4b fix: proper filesystem commands initialization for Windows


View it on GitHub or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/19287/before/613e6561b532eb72d8850b552ac33aaa39f9862e/after/c258a4b8e90e244baadfb05eba00f79eca0d9093@github.com>

Reply all
Reply to author
Forward
0 new messages