From 2d91768d88b14568139b51da4ce0c85cbe837df5 Mon Sep 17 00:00:00 2001 From: Arun Prakash Jana Date: Thu, 21 Nov 2019 00:31:39 +0530 Subject: Fix some cat abuses in code, plugins --- plugins/ndiff | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/ndiff') diff --git a/plugins/ndiff b/plugins/ndiff index dff24d2..f5ca0dc 100755 --- a/plugins/ndiff +++ b/plugins/ndiff @@ -25,9 +25,9 @@ if [ -s $selection ]; then 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 + # xargs -0 -o vimdiff < $selection - cat $selection | xargs -0 vimdiff +0 + xargs -0 vimdiff +0 < $selection fi else echo "needs at least 2 files or directories selected for comparison" -- cgit v1.2.3-70-g09d2