Created
May 26, 2014 11:41
-
-
Save k-takata/0cb149f4b6b3cb8bd978 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# HG changeset patch | |
# Parent 7723e7290ac81885c1f59d9dfdb1538469732ba0 | |
diff --git a/runtime/autoload/netrw.vim b/runtime/autoload/netrw.vim | |
--- a/runtime/autoload/netrw.vim | |
+++ b/runtime/autoload/netrw.vim | |
@@ -3502,7 +3502,7 @@ | |
setl ma noro | |
" call Decho("setl ma noro") | |
let b:netrw_curdir = dirname | |
- let url = s:method."://".s:user.s:machine.(s:port ? ":".s:port : "")."/".s:path | |
+ let url = s:method."://".(s:user != "" ? s:user."@" : "").s:machine.(s:port ? ":".s:port : "")."/".s:path | |
" call Decho("exe sil! keepalt file ".fnameescape(url)." (bt=".&bt.")") | |
exe "sil! keepj keepalt file ".fnameescape(url) | |
exe "sil! keepj keepalt doau BufReadPre ".fnameescape(s:fname) | |
@@ -5714,7 +5714,7 @@ | |
endif | |
let mapsafepath = escape(s:path, s:netrw_map_escape) | |
- let mapsafeusermach = escape(s:user.s:machine, s:netrw_map_escape) | |
+ let mapsafeusermach = escape((s:user != "" ? s:user."@" : "").s:machine, s:netrw_map_escape) | |
nnoremap <buffer> <silent> <Plug>NetrwRefresh :call <SID>NetrwRefresh(0,<SID>NetrwBrowseChgDir(0,'./'))<cr> | |
if g:netrw_mousemaps == 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment