neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

commit 7f249936a989dbc21ad03e394197afc07cb9c0bf
parent 061a0d5a48e4e3c4a72930de806e5957763f4dc8
Author: Christian Clason <c.clason@uni-graz.at>
Date:   Fri, 12 Jan 2024 17:30:54 +0100

vim-patch:2357765304e4

runtime(netrw): Decode multibyte percent-encoding filename correctly (vim/vim#13842)

Use `printf("%c")` instead of `nr2char()` to handle '%xx' as a byte.

Close vim/vim#13787

https://github.com/vim/vim/commit/2357765304e4c55935b5cc853ffb98ae82d64a01

Co-authored-by: K.Takata <kentkt@csc.jp>

Diffstat:
Mruntime/autoload/netrw.vim | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/runtime/autoload/netrw.vim b/runtime/autoload/netrw.vim @@ -11477,7 +11477,7 @@ endfun " netrw#RFC2396: converts %xx into characters {{{2 fun! netrw#RFC2396(fname) " call Dfunc("netrw#RFC2396(fname<".a:fname.">)") - let fname = escape(substitute(a:fname,'%\(\x\x\)','\=nr2char("0x".submatch(1))','ge')," \t") + let fname = escape(substitute(a:fname,'%\(\x\x\)','\=printf("%c","0x".submatch(1))','ge')," \t") " call Dret("netrw#RFC2396 ".fname) return fname endfun