From: Arun Prakash Jana Date: Tue, 13 Aug 2019 19:38:57 +0000 (+0530) Subject: ndiff: direction to get rid of vim warning X-Git-Tag: v2.7~146 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=c5bbbd852ca137190ed41775800cc1d4c44a87cc;p=nnn.git ndiff: direction to get rid of vim warning --- diff --git a/plugins/ndiff b/plugins/ndiff index 3e9d8a46..5a435e93 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