From 04394750e77ed8dc71b93a22ab3c9c8b79cbf57e Mon Sep 17 00:00:00 2001 From: "Scott J. Goldman" Date: Sat, 1 Sep 2012 22:59:49 -0700 Subject: [PATCH] When testing if a blob is safe to colorize, check size first Similar to e415a13 --- lib/linguist/blob_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/linguist/blob_helper.rb b/lib/linguist/blob_helper.rb index fbbaff9c..04c3f0a9 100644 --- a/lib/linguist/blob_helper.rb +++ b/lib/linguist/blob_helper.rb @@ -160,7 +160,7 @@ module Linguist # # Return true or false def safe_to_colorize? - text? && !large? && !high_ratio_of_long_lines? + !large? && text? && !high_ratio_of_long_lines? end # Internal: Does the blob have a ratio of long lines?