Files
neovim/runtime/doc
Harsh Kapse a5b8cf145d feat(diff): merge adjacent blocks using inline:word (#37085)
vim-patch:9.2.0174: diff: inline word-diffs can be fragmented

Problem:  When using 'diffopt=inline:word', lines were excessively
          fragmented with punctuation creating separate highlight
          blocks, making it harder to read the diffs.
Solution: Added 'diff_refine_inline_word_highlight()' to merge
          adjacent diff blocks that are separated by small gaps of
          non-word characters (up to 5 bytes by default) (HarshK97).

When using inline:word diff mode, adjacent changed words separated by
punctuation or whitespace are now merged into a single highlight block
if the gap between them contains fewer than 5 non-word characters.

This creates more readable diffs and closely matches GitHub's own diff
display.

closes: vim/vim#19098

42c6686c78
2026-03-17 12:11:55 +00:00
..
2026-03-12 11:12:56 +01:00
2026-03-11 18:24:57 +01:00
2026-03-11 18:17:46 +01:00
2026-02-12 13:46:45 +01:00
2026-02-12 13:46:45 +01:00
2026-03-11 18:17:46 +01:00
2024-05-15 23:19:26 +02:00
2026-03-11 18:00:18 +01:00
2026-03-11 18:00:18 +01:00
2026-03-16 14:52:03 +01:00
2025-12-06 20:33:02 -05:00
2023-06-25 17:14:28 +02:00
2026-03-11 18:00:18 +01:00
2026-01-27 17:14:57 -05:00
2026-03-11 18:24:57 +01:00
2026-01-12 03:50:57 +00:00
2026-02-12 13:46:45 +01:00
2026-03-13 20:32:01 +01:00
2025-12-15 13:55:15 -05:00
2026-03-16 10:29:58 +01:00
2026-02-12 13:46:45 +01:00
2025-12-15 13:55:15 -05:00
2026-03-11 18:17:46 +01:00
2025-09-28 20:57:59 -07:00
2025-12-15 13:55:15 -05:00
2026-03-11 18:00:18 +01:00
2025-12-15 13:55:15 -05:00
2025-12-06 20:33:02 -05:00
2026-03-11 18:24:57 +01:00
2026-03-11 18:17:46 +01:00
2026-03-14 12:25:14 +01:00
2026-01-07 08:11:42 +08:00
2025-12-06 20:33:02 -05:00
2025-12-06 20:33:02 -05:00
2026-03-11 12:39:49 +01:00
2025-12-15 13:55:15 -05:00
2026-03-11 18:00:18 +01:00
2026-03-11 18:17:46 +01:00