0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

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)
This commit is contained in:
Bram Moolenaar
2017-08-05 23:09:31 +02:00
parent 0af2d32c21
commit 39d21e3c30
3 changed files with 22 additions and 1 deletions

View File

@@ -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)