aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott J. Goldman <scottjg@github.com>2012-09-01 22:59:49 -0700
committerScott J. Goldman <scottjg@github.com>2012-09-02 00:08:37 -0700
commit04394750e77ed8dc71b93a22ab3c9c8b79cbf57e (patch)
treecfba404c83ec9dce013952e3e870e0bfcad9130f
parente415a1351bf3e7eff0a33574400fa89c0941d9bf (diff)
When testing if a blob is safe to colorize, check size first
Similar to e415a13
-rw-r--r--lib/linguist/blob_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/linguist/blob_helper.rb b/lib/linguist/blob_helper.rb
index fbbaff9..04c3f0a 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?