From f76792a10bfc1f9a55b742e289cd73be13fbf245 Mon Sep 17 00:00:00 2001 From: Jan Edmund Lazo Date: Mon, 6 May 2019 23:18:30 -0400 Subject: [PATCH] vim-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 vim/vim#1942) https://github.com/vim/vim/commit/39d21e3c30f3391f3b27f5ddb7e1ad411bdb8f2e --- src/nvim/path.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/nvim/path.c b/src/nvim/path.c index a706e32773..67b88a861a 100644 --- a/src/nvim/path.c +++ b/src/nvim/path.c @@ -1346,6 +1346,15 @@ void slash_adjust(char_u *p) if (path_with_url((const char *)p)) { return; } + + if (*p == '`') { + // don't replace backslash in backtick quoted strings + const size_t len = STRLEN(p); + if (len > 2 && *(p + len - 1) == '`') { + return; + } + } + while (*p) { if (*p == (char_u)psepcN) { *p = (char_u)psepc;