search: Do not highlight trailing newline in multiline structural search
Created by: rvantonder
Previous to this change, multiline structural search highlights included the trailing newline of the last line, which would highlight the character in the 0th column on the next line. This change updates the line lengths to exclude the trailing newlines.
Test plan: Validated visually, updated the tests.