diff options
author | Kornelius Kalnbach <murphy@rubychan.de> | 2011-09-19 02:49:28 +0200 |
---|---|---|
committer | Kornelius Kalnbach <murphy@rubychan.de> | 2011-09-19 02:49:28 +0200 |
commit | cec235ca3f368cc908cf9d7dfe6cd6ec19f536e4 (patch) | |
tree | 34c3a4625820dce1c9a4bb71a71419f351631b01 /bin/coderay | |
parent | b7a6089b05f9f32e4411494e98743135de526276 (diff) | |
download | coderay-cec235ca3f368cc908cf9d7dfe6cd6ec19f536e4.tar.gz |
don't close stdout
Diffstat (limited to 'bin/coderay')
-rwxr-xr-x | bin/coderay | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/coderay b/bin/coderay index 994098d..ccf16a9 100755 --- a/bin/coderay +++ b/bin/coderay @@ -159,7 +159,7 @@ when 'highlight', nil rescue CodeRay::Scanners::Scanner::ScanError # FIXME: rescue Errno::EPIPE # this is sometimes raised by pagers; ignore [TODO: wtf?] ensure - file.close + file.close if output_file end end when 'li', 'list' |