mirror of
https://github.com/neovim/neovim.git
synced 2025-12-16 19:35:37 +00:00
vim-patch:9a775b4a2ae6 (#26588)
runtime(netrw): escape curdir in BrowseUpDir (vim/vim#13681)
fixes vim/vim#13678
9a775b4a2a
Co-authored-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
@@ -5268,7 +5268,8 @@ fun! s:NetrwBrowseUpDir(islocal)
|
|||||||
endif
|
endif
|
||||||
call s:RestorePosn(s:netrw_posn)
|
call s:RestorePosn(s:netrw_posn)
|
||||||
let curdir= substitute(curdir,'^.*[\/]','','')
|
let curdir= substitute(curdir,'^.*[\/]','','')
|
||||||
call search('\<'.curdir.'/','wc')
|
let curdir= '\<'. escape(curdir, '~'). '/'
|
||||||
|
call search(curdir,'wc')
|
||||||
endif
|
endif
|
||||||
" call Dret("s:NetrwBrowseUpDir")
|
" call Dret("s:NetrwBrowseUpDir")
|
||||||
endfun
|
endfun
|
||||||
|
|||||||
Reference in New Issue
Block a user