Mercurial > vim
diff src/clientserver.c @ 21723:5b0796787cb2 v8.2.1411
patch 8.2.1411: when splitting a window localdir is copied but prevdir is not
Commit: https://github.com/vim/vim/commit/a9a47d157ab1946d1e286c9695bc68d71305af68
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Aug 9 21:45:52 2020 +0200
patch 8.2.1411: when splitting a window localdir is copied but prevdir is not
Problem: when splitting a window localdir is copied but prevdir is not.
Solution: Also copy prevdir. (closes https://github.com/vim/vim/issues/6667)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 09 Aug 2020 22:00:04 +0200 |
parents | 3af71cbcfdbe |
children | acda780ffc3e |
line wrap: on
line diff
--- 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.