summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@hut.pm>2017-06-22 21:20:31 +0200
committerhut <hut@hut.pm>2017-06-22 21:20:31 +0200
commit086074db6f08af058ffdced7319287715a88d42a (patch)
treea0754af58a975296449077ea1b6b35233e080299
parente4a18c29c44590dcbfa5decf893a9bdf88500ed3 (diff)
downloadranger-086074db6f08af058ffdced7319287715a88d42a.tar.gz
core.runner: show stderr when using 'p' flag (#884)
-rw-r--r--ranger/core/runner.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/ranger/core/runner.py b/ranger/core/runner.py
index 8c3e3162..bb4e512a 100644
--- a/ranger/core/runner.py
+++ b/ranger/core/runner.py
@@ -27,7 +27,7 @@ from __future__ import (absolute_import, division, print_function)
 import logging
 import os
 import sys
-from subprocess import Popen, PIPE
+from subprocess import Popen, PIPE, STDOUT
 from ranger.ext.get_executables import get_executables, get_term
 from ranger.ext.popen_forked import Popen_forked
 
@@ -185,7 +185,7 @@ class Runner(object):  # pylint: disable=too-few-public-methods
 
         if 'p' in context.flags:
             popen_kws['stdout'] = PIPE
-            popen_kws['stderr'] = PIPE
+            popen_kws['stderr'] = STDOUT
             toggle_ui = False
             pipe_output = True
             context.wait = False