diff --git a/src/editor/mod.rs b/src/editor/mod.rs index 4b23452..61f0f29 100644 --- a/src/editor/mod.rs +++ b/src/editor/mod.rs @@ -143,7 +143,7 @@ impl Editor { let mut lei = 0; let mut le_count = 0; for i in 0us..8 { - if line_ending_histogram[i] > le_count { + if line_ending_histogram[i] >= le_count { lei = i; le_count = line_ending_histogram[i]; }