From 955826a1e83a617069a419bce82ce5694f3c68dd Mon Sep 17 00:00:00 2001 From: 0xACE <0xACE@users.noreply.github.com> Date: Mon, 4 Nov 2019 03:42:00 +0100 Subject: [PATCH] Fix dragdrop stderr causing issues (#374) For w/e reason the output from `which` causes problems with nnn rendering. This commit silences the problematic lines. --- plugins/dragdrop | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/dragdrop b/plugins/dragdrop index 6db7d5aa..647e8480 100755 --- a/plugins/dragdrop +++ b/plugins/dragdrop @@ -19,10 +19,10 @@ all= dnd() { - if which dragon-drag-and-drop; then - dragon-drag-and-drop "$@" + if which dragon-drag-and-drop 2>&1 >/dev/null; then + dragon-drag-and-drop "$@" 2>/dev/null else - dragon "$@" + dragon "$@" 2>/dev/null fi }