Browse Source

ndiff: direction to get rid of vim warning

master
Arun Prakash Jana 5 years ago
parent
commit
c5bbbd852c
No known key found for this signature in database GPG Key ID: A75979F35C080412
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      plugins/ndiff

+ 4
- 0
plugins/ndiff View File

@@ -23,6 +23,10 @@ if [ -s $selection ]; then
vimdiff "$dir1" "$dir2"
rm "$dir1" "$dir2"
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
fi
else


Loading…
Cancel
Save