]> Sergey Matveev's repositories - nnn.git/commitdiff
Fix dragdrop stderr causing issues (#374)
author0xACE <0xACE@users.noreply.github.com>
Mon, 4 Nov 2019 02:42:00 +0000 (03:42 +0100)
committerMischievous Meerkat <engineerarun@gmail.com>
Mon, 4 Nov 2019 02:42:00 +0000 (08:12 +0530)
For w/e reason the output from `which` causes problems with nnn
rendering. This commit silences the problematic lines.

plugins/dragdrop

index 6db7d5aa8ef14dd9adab45b5d76bca21a6bc785a..647e8480a720a11d63af493866bc3d28d906d796 100755 (executable)
@@ -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
 }