-
Notifications
You must be signed in to change notification settings - Fork 65
Open
Description
Hello,
I use neovim 0.4.4 (in Arch Linux). I have the following alias defined in my .bashrc to automatically use your plugin when two folders are compared:
function __vimdiff {
if [ -d "$1" ] && [ -d "$2" ] && [ -z "$3" ]; then
/usr/bin/nvim -c "DirDiff $1 $2"
else
/usr/bin/nvim -d "$@"
fi
}
alias vimdiff="__vimdiff"
Now, I'm experiencing a strange behaviour: if set hidden is NOT set in my init.vim file, then DirDiff works just fine; but if I set this option, then DirDiff always shows the content of the first file of the diff: when I hit the Enter key on any other file name (e.g. a file "Only in [A]"), DirDiff doesn't show its content.
I don't experience this when I launch :DirDiff dir1 dir2 from neovim itself, whether set hidden is set or not.
Is there an explanation for this? Could anyone explain me why this set hidden option could influence the behaviour of vim-dirdiff? Thanx for any help!
Metadata
Metadata
Assignees
Labels
No labels