On Sunday, October 11, 2015 at 10:19:05 AM UTC+9, mattn wrote: > > How will the resulting buffer name, with the slash, be used? > > Is this only inside netrw? In that case you'll have to talk to > > Charles.
> No. patching vim. if okay, will make a patch. There are two problem. 1. ":e http://www.google.com/" doesn't work on noshellslash. 2. URL is displayed as http:\\www.google.com\foo.html 1 should be fixed with my previous patch. I will update in later. 2 should be following patch. diff --git a/src/fileio.c b/src/fileio.c index 0f3f148..b4480d0 100644 --- a/src/fileio.c +++ b/src/fileio.c @@ -7555,6 +7555,8 @@ forward_slash(fname) { char_u *p; + if (path_with_url(fname)) + return; for (p = fname; *p != NUL; ++p) # ifdef FEAT_MBYTE /* The Big5 encoding can have '\' in the trail byte. */ diff --git a/src/os_win32.c b/src/os_win32.c index 5114863..3c6cdbe 100644 --- a/src/os_win32.c +++ b/src/os_win32.c @@ -2731,6 +2731,8 @@ fname_case( flen = (int)STRLEN(name); if (flen == 0) return; + if (path_with_url(name)) + return; slash_adjust(name); -- -- 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 --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
