Mercurial > vim
changeset 6895:63ac0cdf3b28 v7.4.767
patch 7.4.767
Problem: --remote-tab-silent can fail on MS-Windows.
Solution: Use single quotes to avoid problems with backslashes. (Idea by
Weiyong Mao)
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Fri, 03 Jul 2015 13:33:01 +0200 |
parents | 3ccc008c035b |
children | 026862df2f7b |
files | src/main.c src/version.c |
diffstat | 2 files changed, 5 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/main.c +++ b/src/main.c @@ -4008,15 +4008,15 @@ build_drop_cmd(filec, filev, tabs, sendR * if haslocaldir() * cd - * lcd - - * elseif getcwd() ==# "current path" + * elseif getcwd() ==# 'current path' * cd - * endif * endif */ ga_concat(&ga, (char_u *)":if !exists('+acd')||!&acd|if haslocaldir()|"); - ga_concat(&ga, (char_u *)"cd -|lcd -|elseif getcwd() ==# \""); + ga_concat(&ga, (char_u *)"cd -|lcd -|elseif getcwd() ==# '"); ga_concat(&ga, cdp); - ga_concat(&ga, (char_u *)"\"|cd -|endif|endif<CR>"); + ga_concat(&ga, (char_u *)"'|cd -|endif|endif<CR>"); vim_free(cdp); if (sendReply)