lib/hithighlighter.rb in twitter-text-1.2.3 vs lib/hithighlighter.rb in twitter-text-1.2.4

- old
+ new

@@ -58,9 +58,11 @@ hit_spot = hit - prev_chunks_len result << chunk_chars[chunk_cursor...hit_spot].to_s + tag chunk_cursor = hit_spot if index % 2 == 0 start_in_chunk = true + else + start_in_chunk = false end placed = true end # ultimate fallback, hits that run off the end get a closing tag