Skip to content

Commit

Permalink
runtime(netrw): escape curdir in BrowseUpDir (#13681)
Browse files Browse the repository at this point in the history
 fixes #13678

Signed-off-by: Christian Brabandt <cb@256bit.org>
  • Loading branch information
chrisbra committed Dec 14, 2023
1 parent fa83110 commit 9a775b4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion runtime/autoload/netrw.vim
Original file line number Diff line number Diff line change
Expand Up @@ -5315,7 +5315,8 @@ fun! s:NetrwBrowseUpDir(islocal)
endif
call s:RestorePosn(s:netrw_posn)
let curdir= substitute(curdir,'^.*[\/]','','')
call search('\<'.curdir.'/','wc')
let curdir= '\<'. escape(curdir, '~'). '/'
call search(curdir,'wc')
endif
" call Dret("s:NetrwBrowseUpDir")
endfun
Expand Down

0 comments on commit 9a775b4

Please sign in to comment.