]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.2.0475: runtime(netrw): bookmark paths not normalized v9.2.0475
authorJ. Paulo Seibt <jpseibt@gmail.com>
Mon, 11 May 2026 17:08:48 +0000 (17:08 +0000)
committerChristian Brabandt <cb@256bit.org>
Mon, 11 May 2026 17:10:55 +0000 (17:10 +0000)
commit74019bea8c97077bfd66cd63dc0ffa279fd729ac
treed2223518d7a8129a38257e7c3a230fdc80dd2cb0
parent7784fac15f7ae729b4422c5efc2db48bd15a8548
patch 9.2.0475: runtime(netrw): bookmark paths not normalized

Problem:  the bookmarks list can have duplicate entries, more often
          in win32 (due to mixed slashes and capitalization) and when
          g:netrw_keepdir=0 (which could introduce relative paths).
          Duplicate entries could be: C:\foo\BAR\baz.file
                                     c:\foo\bar\baz.file
                                     c:/foo\BAR/baz.file
                                     BAR/baz.file
Solution: Normalize the paths and make sure they are always absolute
          (J. Paulo Seibt).

closes: #20194

Signed-off-by: J. Paulo Seibt <jpseibt@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
runtime/doc/pi_netrw.txt
runtime/pack/dist/opt/netrw/autoload/netrw.vim
runtime/pack/dist/opt/netrw/doc/netrw.txt
src/testdir/test_plugin_netrw.vim
src/version.c