vim-patch:8.1.0149: session is wrong with multiple tabs when :lcd was used

Problem:    The generated sessions file does not restore tabs properly if :lcd
            was used in one of them.
Solution:   Create the tab pages before setting the directory. (Yee Cheng
            Chin, closes vim/vim#3152)
26d4b896a7
This commit is contained in:
Jan Edmund Lazo
2020-12-17 21:53:14 -05:00
parent c762f5220b
commit ca2551bc9b
3 changed files with 85 additions and 10 deletions

View File

@@ -4769,10 +4769,8 @@ static void ex_abclear(exarg_T *eap)
static void ex_autocmd(exarg_T *eap)
{
/*
* Disallow auto commands from .exrc and .vimrc in current
* directory for security reasons.
*/
// Disallow autocommands from .exrc and .vimrc in current
// directory for security reasons.
if (secure) {
secure = 2;
eap->errmsg = e_curdir;