diff options
| author | zeertzjq <zeertzjq@outlook.com> | 2026-09-08 22:57:40 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-09-08 14:57:40 +0000 |
| commit | 3c9fe92e426db219bd303156c8866c4ea1316b73 (patch) | |
| tree | 3ad7ed58ca498a044f38e4f0ed294c8911c7d402 /runtime/lua/vim/pack.lua | |
| parent | 94636bdff04104a79f677ec0bc669ba6d7eb3cf7 (diff) | |
| download | rneovim-3c9fe92e426db219bd303156c8866c4ea1316b73.tar.gz rneovim-3c9fe92e426db219bd303156c8866c4ea1316b73.tar.bz2 rneovim-3c9fe92e426db219bd303156c8866c4ea1316b73.zip | |
vim-patch:9.2.1045: runtime(netrw): raises E46 when changing directory fails (#41783)
Problem: Netrw raises E46 when changing directory fails.
Solution: Remove unused assignments to the read-only directory argument
and cover both error-handling branches with a regression test
(Qiming zhao).
When :lcd fails with E472, s:NetrwLcd() assigns to a:newdir instead of
returning -1. The fallback assignment also refers to dirname, which is
undefined on this path. Neither assignment can update the caller's
directory variable. Keep the existing option restoration and failure
return while removing the invalid assignments.
Supported by AI.
closes: vim/vim#21226
https://github.com/vim/vim/commit/2f72e4c72f98a5760e2c783ab07f9865e91217a8
Co-authored-by: Qiming zhao <chemzqm@gmail.com>
Diffstat (limited to 'runtime/lua/vim/pack.lua')
0 files changed, 0 insertions, 0 deletions