patch 7.4.896
Problem: Editing a URL, which netrw should handle, doesn't work.
Solution: Avoid changing slashes to backslashes. (Yasuhiro Matsumoto)
diff --git a/src/fileio.c b/src/fileio.c
index 0f3f148..20c0294 100644
--- a/src/fileio.c
+++ b/src/fileio.c
@@ -7547,7 +7547,8 @@
#if defined(BACKSLASH_IN_FILENAME) || defined(PROTO)
/*
- * Convert all backslashes in fname to forward slashes in-place.
+ * Convert all backslashes in fname to forward slashes in-place, unless when
+ * it looks like a URL.
*/
void
forward_slash(fname)
@@ -7555,6 +7556,8 @@
{
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. */