diff options
| author | Justin M. Keyes <justinkz@gmail.com> | 2019-05-07 11:42:21 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-05-07 11:42:21 +0200 |
| commit | bc395b4fd4bb4973f22c68763bf000ea4cff4ccb (patch) | |
| tree | c1855b5d165b3efcf395f8a6c3238ea08ec54c12 /src/nvim/path.c | |
| parent | 400ee59247eae62990baf30c7802bc8effb3704a (diff) | |
| parent | 4423759d0360acda87dd829f361957d55748dab5 (diff) | |
| download | rneovim-bc395b4fd4bb4973f22c68763bf000ea4cff4ccb.tar.gz rneovim-bc395b4fd4bb4973f22c68763bf000ea4cff4ccb.tar.bz2 rneovim-bc395b4fd4bb4973f22c68763bf000ea4cff4ccb.zip | |
Merge #9979 from janlazo/vim-8.0.0876
vim-patch:8.0.{876,1144},8.1.0133
Diffstat (limited to 'src/nvim/path.c')
| -rw-r--r-- | src/nvim/path.c | 9 |
1 files changed, 9 insertions, 0 deletions
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; |
