Mercurial > vim
diff src/os_mswin.c @ 11991:15ec6d5adf43 v8.0.0876
patch 8.0.0876: backslashes and wildcards in backticks don't work
commit https://github.com/vim/vim/commit/39d21e3c30f3391f3b27f5ddb7e1ad411bdb8f2e
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Aug 5 23:09:31 2017 +0200
patch 8.0.0876: backslashes and wildcards in backticks don't work
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)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sat, 05 Aug 2017 23:15:04 +0200 |
parents | 74e45c11b754 |
children | 7e704d75a882 |
line wrap: on
line diff
--- 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)