diff options
author | Bram Moolenaar <Bram@vim.org> | 2017-08-05 23:09:31 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2017-08-05 23:09:31 +0200 |
commit | 39d21e3c30f3391f3b27f5ddb7e1ad411bdb8f2e (patch) | |
tree | 29d41909c26a62bf0c5aa00622ecbf08babff34d /src/os_mswin.c | |
parent | 0af2d32c21d48d450a7a1277b2029b9eeed6bebf (diff) | |
download | vim-git-39d21e3c30f3391f3b27f5ddb7e1ad411bdb8f2e.tar.gz |
patch 8.0.0876: backslashes and wildcards in backticks don't workv8.0.0876
Problem: MS-Windows: Backslashes and wildcards in backticks don't work.
Solution: Do not handle backslashes inside backticks in the wrong place.
(Yasuhiro Matsumoto, closes #1942)
Diffstat (limited to 'src/os_mswin.c')
-rw-r--r-- | src/os_mswin.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/os_mswin.c b/src/os_mswin.c index dd4201222..374a2399c 100644 --- a/src/os_mswin.c +++ b/src/os_mswin.c @@ -450,6 +450,15 @@ slash_adjust(char_u *p) { if (path_with_url(p)) return; + + if (*p == '`') + { + /* don't replace backslash in backtick quoted strings */ + int len = STRLEN(p); + if (len > 2 && *(p + len - 1) == '`') + return; + } + while (*p) { if (*p == psepcN) |