]> git.ipfire.org Git - thirdparty/vim.git/commit
runtime(netrw): NetrwChgPerm for files not in cwd
authorMohammad Reza Karimi <m.r.karimi.j@gmail.com>
Sat, 1 Nov 2025 15:46:04 +0000 (15:46 +0000)
committerChristian Brabandt <cb@256bit.org>
Sat, 1 Nov 2025 15:46:04 +0000 (15:46 +0000)
commitfe71c56d8fb6b5a51d1f7f6d54d658ef17a98713
tree49905139ca4cf8c016caf825a238161461ab7647
parent28f7582c16e7692cc56dbb7f240649086b5066d8
runtime(netrw): NetrwChgPerm for files not in cwd

Problem:  Changing permissions fail when using `gp` if the file under
          the cursor is not in the current working directory.
Solution: Use the already available `a:curdir` argument and prepend it
          to the `<cfile>`, so that the path of the file is correct.

This commit also refactors some leftover `netrw#ErrorMsg` to
`netrw#msg#Notify` (the main refactoring was done in
f5e3b5c04f85b0f69cd2aae81e4938cfb191a790).

closes: #18674

Signed-off-by: Mohammad Reza Karimi <m.r.karimi.j@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
runtime/pack/dist/opt/netrw/autoload/netrw.vim