Problem: parse_diffopt() passes linematch from diffopt to byte-level vim.diff() in char_diff_pair, where each "line" is a single byte. linematch is meaningless at this granularity. Solution: copy diff_opts without linematch before passing to byte_diff in char_diff_pair. linematch remains in effect for the line-level diff in diff_group_native where it belongs. |
||
|---|---|---|
| .. | ||
| diffs | ||