From: 0xACE <0xACE@users.noreply.github.com> Date: Mon, 4 Nov 2019 02:42:00 +0000 (+0100) Subject: Fix dragdrop stderr causing issues (#374) X-Git-Tag: v2.8~106 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=955826a1e83a617069a419bce82ce5694f3c68dd;p=nnn.git 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. --- 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 }