mirror of
https://github.com/martinvonz/jj.git
synced 2025-01-31 16:33:10 +00:00
01a9ce0c71
Inline diffs on multi-byte UTF-8 characters would match individual bytes, causing garbled diffs in some cases. For example, replacing `⊢` with `⊣`, which differ in the final byte only, caused the diff to display a diff of the bytes instead the character. This commit uses a workaround present in Mercurial by treating all bytes 0x80 and above as word characters, causing any multi-byte character to be treated as a word and not segmented. https://www.mercurial-scm.org/repo/hg/file/6.3.3/mercurial/patch.py#l51 |
||
---|---|---|
.. | ||
benches | ||
gen-protos | ||
src | ||
tests | ||
testutils | ||
build.rs | ||
Cargo.toml |