aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/ndiff
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2019-08-14 01:08:57 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2019-08-14 01:38:30 +0530
commitc5bbbd852ca137190ed41775800cc1d4c44a87cc (patch)
treeda4ab5569f1e1e229745681cb7b263ec3499ef01 /plugins/ndiff
parent775742150cb96d3ab6d7d76fbaf8942d3caf9e2b (diff)
downloadnnn-c5bbbd852ca137190ed41775800cc1d4c44a87cc.tar.gz
ndiff: direction to get rid of vim warning
Diffstat (limited to 'plugins/ndiff')
-rwxr-xr-xplugins/ndiff4
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/ndiff b/plugins/ndiff
index 3e9d8a4..5a435e9 100755
--- a/plugins/ndiff
+++ b/plugins/ndiff
@@ -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