diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-08-09 21:45:52 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-08-09 21:45:52 +0200 |
commit | a9a47d157ab1946d1e286c9695bc68d71305af68 (patch) | |
tree | bd97177c3df8a3671e3d2a0a58ce0609ca80d7dd /src/clientserver.c | |
parent | 7f7a8888699bca6df0a45a16db5f0e313383b5f1 (diff) | |
download | vim-git-a9a47d157ab1946d1e286c9695bc68d71305af68.tar.gz |
patch 8.2.1411: when splitting a window localdir is copied but prevdir is notv8.2.1411
Problem: when splitting a window localdir is copied but prevdir is not.
Solution: Also copy prevdir. (closes #6667)
Diffstat (limited to 'src/clientserver.c')
-rw-r--r-- | src/clientserver.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/clientserver.c b/src/clientserver.c index fbbeb6a4b..7215aa7ff 100644 --- a/src/clientserver.c +++ b/src/clientserver.c @@ -596,7 +596,8 @@ build_drop_cmd( ga_concat(&ga, cdp); // Call inputsave() so that a prompt for an encryption key works. - ga_concat(&ga, (char_u *)"<CR>:if exists('*inputsave')|call inputsave()|endif|"); + ga_concat(&ga, (char_u *) + "<CR>:if exists('*inputsave')|call inputsave()|endif|"); if (tabs) ga_concat(&ga, (char_u *)"tab "); ga_concat(&ga, (char_u *)"drop"); @@ -621,7 +622,8 @@ build_drop_cmd( ga_concat(&ga, p); vim_free(p); } - ga_concat(&ga, (char_u *)"|if exists('*inputrestore')|call inputrestore()|endif<CR>"); + ga_concat(&ga, (char_u *) + "|if exists('*inputrestore')|call inputrestore()|endif<CR>"); // The :drop commands goes to Insert mode when 'insertmode' is set, use // CTRL-\ CTRL-N again. |