Expand description

Calculate which nearby lines should also be displayed.

Functions

add_ends 🔒
Extend matched_lines to include the leading and trailing lines in the file.
Before: 120 – (novel) 121 – 122 –
all_lines 🔒
Before:
Before:
Ensure that we don’t miss any intermediate values.
flip_tuple 🔒
If the lines immediately before current are blank on both sides, return the line numbers of those blank lines.
For every line number pair, if there are blank lines preceding the pair, add those blank lines to the vec.
pad_after 🔒
pad_before 🔒