]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.1.0272: autocmd may change cwd after :tcd and :lcd v9.1.0272
authorzeertzjq <zeertzjq@outlook.com>
Sun, 7 Apr 2024 16:16:10 +0000 (18:16 +0200)
committerChristian Brabandt <cb@256bit.org>
Sun, 7 Apr 2024 16:16:10 +0000 (18:16 +0200)
commit9d956ee8eab64a0d412b045305fde5bc03d95d4a
treecf646584973d74b7d376f065c013d94667de7063
parenta44ced5763d377c71c96562b894c1c026ba89328
patch 9.1.0272: autocmd may change cwd after :tcd and :lcd

Problem:  Autocommand may change currect directory after :tcd and :lcd.
Solution: Also clear tp_localdir and w_localdir when using aucmd_win.
          (zeertzjq)

closes: #14435

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
src/autocmd.c
src/proto/window.pro
src/structs.h
src/testdir/test_autocmd.vim
src/version.c
src/window.c