ndiff: direction to get rid of vim warning

This commit is contained in:
Arun Prakash Jana 2019-08-14 01:08:57 +05:30
parent 775742150c
commit c5bbbd852c
No known key found for this signature in database
GPG key ID: A75979F35C080412

View file

@ -23,6 +23,10 @@ if [ -s $selection ]; then
vimdiff "$dir1" "$dir2" vimdiff "$dir1" "$dir2"
rm "$dir1" "$dir2" rm "$dir1" "$dir2"
else else
# If xargs supports the -o option, use it to get rid of:
# Vim: Warning: Input is not from a terminal
# cat $selection | xargs -0 -o vimdiff
cat $selection | xargs -0 vimdiff cat $selection | xargs -0 vimdiff
fi fi
else else