comparison src/os_mswin.c @ 7170:beb67ef38f88 v7.4.896

commit https://github.com/vim/vim/commit/b4f6a46b01ed00b642a2271e9d1559e51ab0f2c4 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Oct 13 19:43:17 2015 +0200 patch 7.4.896 Problem: Editing a URL, which netrw should handle, doesn't work. Solution: Avoid changing slashes to backslashes. (Yasuhiro Matsumoto)
author Christian Brabandt <cb@256bit.org>
date Tue, 13 Oct 2015 19:45:05 +0200
parents 79a667b879e7
children 07cfa8fea697
comparison
equal deleted inserted replaced
7169:afceb127f7d4 7170:beb67ef38f88
479 * with slashes (e.g. in a command name). We can't have mixed slashes and 479 * with slashes (e.g. in a command name). We can't have mixed slashes and
480 * backslashes, because comparing file names will not work correctly. The 480 * backslashes, because comparing file names will not work correctly. The
481 * commands that use a file name should try to avoid the need to type a 481 * commands that use a file name should try to avoid the need to type a
482 * backslash twice. 482 * backslash twice.
483 * When 'shellslash' set do it the other way around. 483 * When 'shellslash' set do it the other way around.
484 * When the path looks like a URL leave it unmodified.
484 */ 485 */
485 void 486 void
486 slash_adjust(p) 487 slash_adjust(p)
487 char_u *p; 488 char_u *p;
488 { 489 {
490 if (path_with_url(p))
491 return;
489 while (*p) 492 while (*p)
490 { 493 {
491 if (*p == psepcN) 494 if (*p == psepcN)
492 *p = psepc; 495 *p = psepc;
493 mb_ptr_adv(p); 496 mb_ptr_adv(p);