new commit/diff search: fix an issue where the last line in a diff would not be highlighted
Created by: camdencheek
See test for an example of what would be affected.
Stacked on #25006
Created by: camdencheek
See test for an example of what would be affected.
Stacked on #25006