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

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)
This commit is contained in:
Bram Moolenaar
2015-07-03 13:33:01 +02:00
parent 92abe859ed
commit fafeee6b9e
2 changed files with 5 additions and 3 deletions

View File

@@ -4008,15 +4008,15 @@ build_drop_cmd(filec, filev, tabs, sendReply)
* 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)