mirror of
https://github.com/neovim/neovim.git
synced 2025-10-02 16:08:36 +00:00
tchdir: New tab should inherit CWD. (#5227)
When a new tabpage gets created it will copy the local working directory of the previous one, if there is any.
This commit is contained in:

committed by
Justin M. Keyes

parent
5d8d24f0c2
commit
626065d385
@@ -2978,6 +2978,9 @@ int win_new_tabpage(int after, char_u *filename)
|
||||
xfree(newtp);
|
||||
return FAIL;
|
||||
}
|
||||
|
||||
newtp->localdir = tp->localdir ? vim_strsave(tp->localdir) : NULL;
|
||||
|
||||
curtab = newtp;
|
||||
|
||||
/* Create a new empty window. */
|
||||
|
Reference in New Issue
Block a user