[vim] Try to make 'dir' option compatible with &autochdir
Before adoption: this commit came in with the history the project adopted, so no landing records it.
When 'dir' option is passed to fzf#run(), the current working directory is temporarily changed to the given directory, and restored at the end. However, this behavior is not compatible with &autochdir. This commit introduces a heuristic to determine whether or not to restore the previous working directory.
authored by Junegunn Choi · committed by Junegunn Choi · parent b18db47 · Browse files · 2 files+57 added−19 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Trailers
- Related: https://github.com/junegunn/fzf.vim/issues/70
Diff stats
2 files+57 added−19 removed
- tests:+29 added−0 removed
- other:+28 added−19 removed