summaryrefslogtreecommitdiff
path: root/bin/coderay
diff options
context:
space:
mode:
authorKornelius Kalnbach <murphy@rubychan.de>2011-09-19 02:49:28 +0200
committerKornelius Kalnbach <murphy@rubychan.de>2011-09-19 02:49:28 +0200
commitcec235ca3f368cc908cf9d7dfe6cd6ec19f536e4 (patch)
tree34c3a4625820dce1c9a4bb71a71419f351631b01 /bin/coderay
parentb7a6089b05f9f32e4411494e98743135de526276 (diff)
downloadcoderay-cec235ca3f368cc908cf9d7dfe6cd6ec19f536e4.tar.gz
don't close stdout
Diffstat (limited to 'bin/coderay')
-rwxr-xr-xbin/coderay2
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'