]> Sergey Matveev's repositories - nnn.git/commitdiff
ndiff: direction to get rid of vim warning
authorArun Prakash Jana <engineerarun@gmail.com>
Tue, 13 Aug 2019 19:38:57 +0000 (01:08 +0530)
committerArun Prakash Jana <engineerarun@gmail.com>
Tue, 13 Aug 2019 20:08:30 +0000 (01:38 +0530)
plugins/ndiff

index 3e9d8a462424d05a71cc910c9b85271430dc35ec..5a435e93e01e51b06cfd0aa585b494d4c1d91b17 100755 (executable)
@@ -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