diff options
author | Bram Moolenaar <Bram@vim.org> | 2015-10-13 19:43:17 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2015-10-13 19:43:17 +0200 |
commit | b4f6a46b01ed00b642a2271e9d1559e51ab0f2c4 (patch) | |
tree | 48ba58ed615bcd676e499527d938d97ac7bce09e /src/os_mswin.c | |
parent | 23d1b62746dce048c80cc19e7e5af1d513b6b4cf (diff) | |
download | vim-git-b4f6a46b01ed00b642a2271e9d1559e51ab0f2c4.tar.gz |
patch 7.4.896v7.4.896
Problem: Editing a URL, which netrw should handle, doesn't work.
Solution: Avoid changing slashes to backslashes. (Yasuhiro Matsumoto)
Diffstat (limited to 'src/os_mswin.c')
-rw-r--r-- | src/os_mswin.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/os_mswin.c b/src/os_mswin.c index b50b86c88..daf71a304 100644 --- a/src/os_mswin.c +++ b/src/os_mswin.c @@ -481,11 +481,14 @@ mch_isFullName(char_u *fname) * commands that use a file name should try to avoid the need to type a * backslash twice. * When 'shellslash' set do it the other way around. + * When the path looks like a URL leave it unmodified. */ void slash_adjust(p) char_u *p; { + if (path_with_url(p)) + return; while (*p) { if (*p == psepcN) |