mirror of
https://github.com/jarun/nnn.git
synced 2024-11-24 03:41:27 +00:00
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.
This commit is contained in:
parent
6713bfba13
commit
955826a1e8
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue