From a9a47d157ab1946d1e286c9695bc68d71305af68 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Sun, 9 Aug 2020 21:45:52 +0200 Subject: 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 #6667) --- src/clientserver.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/clientserver.c') diff --git a/src/clientserver.c b/src/clientserver.c index fbbeb6a4bf..7215aa7ffb 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 *)":if exists('*inputsave')|call inputsave()|endif|"); + ga_concat(&ga, (char_u *) + ":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"); + ga_concat(&ga, (char_u *) + "|if exists('*inputrestore')|call inputrestore()|endif"); // The :drop commands goes to Insert mode when 'insertmode' is set, use // CTRL-\ CTRL-N again. -- cgit v1.2.3