should_merge_blocks

Function should_merge_blocks 

Source
pub fn should_merge_blocks(
    block1: &SearchResult,
    block2: &SearchResult,
    threshold: usize,
) -> bool
Expand description

Helper function to determine if two blocks should be merged

§Arguments

  • block1 - First search result
  • block2 - Second search result
  • threshold - Maximum number of lines between blocks to consider them adjacent

§Returns

true if blocks should be merged, false otherwise