diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2020-12-17 21:53:14 -0500 |
---|---|---|
committer | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2020-12-29 22:31:20 -0500 |
commit | ca2551bc9b6a0c65b6fa83406fcfdc80d465759c (patch) | |
tree | da34b9daca3146aa1f7394b5dbee64099e3fd3cf /src/nvim/ex_docmd.c | |
parent | c762f5220b02036e4eb9097a1d2a9fded6375fa0 (diff) | |
download | rneovim-ca2551bc9b6a0c65b6fa83406fcfdc80d465759c.tar.gz rneovim-ca2551bc9b6a0c65b6fa83406fcfdc80d465759c.tar.bz2 rneovim-ca2551bc9b6a0c65b6fa83406fcfdc80d465759c.zip |
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)
https://github.com/vim/vim/commit/26d4b896a789e65df7ee0cf3e25056eabc523fda
Diffstat (limited to 'src/nvim/ex_docmd.c')
-rw-r--r-- | src/nvim/ex_docmd.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/nvim/ex_docmd.c b/src/nvim/ex_docmd.c index 3fc02e0693..35b0755bd8 100644 --- a/src/nvim/ex_docmd.c +++ b/src/nvim/ex_docmd.c @@ -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; |