mirror of
https://github.com/neovim/neovim.git
synced 2025-09-19 01:38:16 +00:00
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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user