On Wed, 31 Aug 2011, Benjamin R. Haskell wrote:
On Tue, 30 Aug 2011, Guy Halford-Thompson wrote:
Is this something that is likely to get fixed?
Seems very likely to me. And probably soon, based on his usual
turnaround time.
As far as I can tell, the source of the issue is that
autoload/netrw.vim's s:NetrwBrowse calls:
(line 2439 in v141n):
sil call netrw#NetRead(2,s:method."://".s:user.s:machine."/".s:path)
Note the lack of any port numbers. When running my example (with :443),
the dirname variable in that section properly contains that :443 and
g:netrw_port is set to 443, but it's not being used.
The easiest fix would be to use something like:
let url = s:method."://".s:user.s:machine.(s:port ? ":".s:port : "")."/".s:path
and replace the two occurrences around line 2439 of:
s:method."://".s:user.s:machine."/".s:path
with:
url
This worked for me, so, patch attached.
--
Best,
Ben
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
--- v141n/autoload/netrw.vim 2011-08-31 09:17:14.265108900 -0400
+++ patch/autoload/netrw.vim 2011-08-31 09:17:21.537042125 -0400
@@ -2434,9 +2434,10 @@
" call Decho("setlocal ma noro")
let b:netrw_curdir= dirname
" call Decho("exe sil! keepalt file
".fnameescape(s:method."://".s:user.s:machine."/".s:path)." (bt=".&bt.")")
- exe "sil! keepj keepalt file
".fnameescape(s:method."://".s:user.s:machine."/".s:path)
+ let url = s:method."://".s:user.s:machine.(s:port ? ":".s:port :
"")."/".s:path
+ exe "sil! keepj keepalt file ".fnameescape(url)
exe "sil! keepj keepalt doau BufReadPre ".fnameescape(s:fname)
- sil call netrw#NetRead(2,s:method."://".s:user.s:machine."/".s:path)
+ sil call netrw#NetRead(2,url)
if s:path !~ '.tar.bz2$' && s:path !~ '.tar.gz' && s:path !~ '.tar.xz' &&
s:path !~ '.txz'
" netrw.vim and tar.vim have already handled decompression of the tarball;
avoiding gzip.vim error
exe "sil keepj keepalt doau BufReadPost ".fnameescape(s:fname)