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-16 14:52:04 +01:00
2026-03-16 19:12:12 -04:00
2026-03-12 06:45:22 +08:00
2025-08-14 09:34:38 +02:00
2026-03-11 18:00:18 +01:00
2026-02-19 10:34:22 +08:00
2026-03-09 19:24:01 -04:00
2026-03-16 07:46:34 -04:00
2026-03-10 07:03:02 -04:00
2026-01-17 13:22:55 +00:00
2026-02-27 11:46:22 +00:00
2025-08-14 09:34:38 +02:00
2025-08-14 09:34:38 +02:00
2024-01-02 21:59:12 +01:00
2026-03-16 23:05:39 +00:00
2025-08-14 09:34:38 +02:00
2025-08-14 09:34:38 +02:00
2024-01-01 19:57:44 +01:00
2026-02-26 21:30:44 +08:00
2026-02-15 22:51:03 +00:00
2026-02-15 22:51:03 +00:00
2025-12-07 15:13:31 -05:00
2025-08-14 09:34:38 +02:00
2025-08-14 09:34:38 +02:00
2026-03-03 08:05:58 +08:00
2025-08-14 09:34:38 +02:00
2025-08-14 09:34:38 +02:00
2026-03-14 19:27:20 +00:00
2025-08-14 09:34:38 +02:00
2026-02-12 17:38:11 -05:00
2025-08-14 09:34:38 +02:00
2026-01-01 01:58:02 -05:00
2025-08-14 09:34:38 +02:00
2024-05-31 15:01:13 +02:00
2026-03-10 08:02:50 -04:00
2025-08-14 09:34:38 +02:00
2025-08-14 09:34:38 +02:00
2025-08-14 09:34:38 +02:00
2026-02-27 07:32:08 +08:00
2025-09-29 07:02:01 -07:00
2026-03-11 19:05:46 +00:00
2025-12-21 21:17:33 -05:00
2026-03-05 10:48:25 +01:00
2025-09-08 09:02:37 +08:00
2026-02-08 09:47:02 -05:00
2025-08-14 09:34:38 +02:00
2025-08-14 09:34:38 +02:00
2025-08-14 09:34:38 +02:00
2025-08-14 09:34:38 +02:00
2025-08-14 09:34:38 +02:00
2025-12-20 22:07:27 -05:00
2025-08-14 09:34:38 +02:00
2025-12-02 07:24:28 +08:00
2025-08-14 09:34:38 +02:00
2025-09-09 12:56:49 +02:00
2026-01-01 01:48:49 -05:00
2025-08-14 09:34:38 +02:00
2025-10-11 09:22:18 -07:00
2025-09-09 12:56:49 +02:00
2026-03-17 12:11:55 +00:00
2025-08-14 09:34:38 +02:00
2026-02-08 09:47:02 -05:00
2025-08-14 09:34:38 +02:00
2026-03-03 08:08:20 +08:00
2025-08-14 09:34:38 +02:00
2026-02-13 18:39:05 -05:00
2025-08-14 09:34:38 +02:00
2026-02-17 23:43:37 +00:00
2025-08-14 09:34:38 +02:00
2026-03-03 08:05:58 +08:00
2026-02-25 03:38:08 -05:00
2026-03-14 08:14:34 +08:00
2025-10-26 06:20:33 +08:00
2026-03-16 19:12:12 -04:00
2025-09-23 13:35:08 -07:00
2025-08-14 09:34:38 +02:00
2025-08-14 09:34:38 +02:00
2026-03-10 09:13:30 +08:00
2025-08-14 09:34:38 +02:00
2026-03-10 09:15:52 +08:00
2026-03-16 13:05:47 +00:00
2025-08-14 09:34:38 +02:00
2025-01-07 09:15:10 +08:00
2026-03-10 10:35:24 -04:00
2025-08-14 09:34:38 +02:00
2025-01-02 05:51:03 -08:00
2026-03-14 19:27:20 +00:00
2025-08-14 09:34:38 +02:00
2026-02-26 21:30:44 +08:00
2025-08-14 09:34:38 +02:00
2024-01-11 21:37:23 +01:00
2026-02-16 09:35:53 -05:00
2025-08-14 09:34:38 +02:00
2026-03-11 18:00:18 +01:00
2026-03-11 18:00:18 +01:00
2026-03-12 10:28:03 +08:00
2025-08-14 09:34:38 +02:00
2024-01-02 21:59:12 +01:00
2026-03-10 09:13:30 +08:00
2025-08-14 09:34:38 +02:00
2025-02-26 16:54:37 +00:00
2026-02-20 09:01:20 +08:00
2025-08-14 09:34:38 +02:00
2024-01-02 21:59:12 +01:00
2025-08-27 10:17:12 +08:00
2026-02-22 07:02:47 +08:00
2024-11-16 09:55:41 +08:00
2026-02-22 07:10:58 +08:00
2025-08-14 09:34:38 +02:00
2024-01-11 21:37:23 +01:00
2025-10-08 06:29:00 +08:00
2025-04-28 10:10:11 +02:00
2025-12-15 13:55:15 -05:00
2025-10-10 07:14:50 -07:00
2024-01-02 21:59:12 +01:00
2025-08-31 05:29:43 +00:00
2025-08-14 09:34:38 +02:00
2026-03-16 07:46:34 -04:00
2025-08-14 09:34:38 +02:00
2026-02-21 14:52:13 -05:00
2026-03-12 14:25:14 +08:00
2025-08-14 09:34:38 +02:00
2026-03-10 18:17:02 -04:00
2025-10-10 07:14:50 -07:00
2023-11-28 22:23:56 +01:00
2026-02-16 08:23:18 +08:00
2025-08-14 09:34:38 +02:00
2025-10-04 04:28:30 +00:00
2025-08-14 09:34:38 +02:00
2025-10-14 08:46:54 +08:00
2025-08-14 09:34:38 +02:00
2026-03-13 06:13:58 -04:00
2025-08-14 09:34:38 +02:00
2025-08-14 09:34:38 +02:00
2025-08-14 09:34:38 +02:00
2025-03-08 05:45:39 +08:00
2025-08-14 09:34:38 +02:00
2025-08-14 09:34:38 +02:00
2026-03-12 04:40:07 -04:00
2025-08-14 09:34:38 +02:00
2025-05-02 09:28:50 +02:00
2026-03-10 09:13:30 +08:00
2025-08-14 09:34:38 +02:00
2026-03-03 11:23:20 +01:00
2024-01-11 21:37:23 +01:00
2023-11-28 22:23:56 +01:00
2026-02-27 11:47:07 +01:00
2026-03-03 11:23:20 +01:00
2024-07-30 07:35:25 +08:00
2026-02-08 09:47:02 -05:00
2025-08-14 09:34:38 +02:00
2025-10-25 06:48:04 +08:00
2026-01-30 12:22:48 -05:00
2025-08-14 09:34:38 +02:00
2026-03-03 11:23:20 +01:00
2026-03-03 11:23:20 +01:00
2025-08-14 09:34:38 +02:00
2026-01-05 14:11:31 +08:00
2025-08-14 09:34:38 +02:00
2025-08-14 09:34:38 +02:00
2025-08-14 09:34:38 +02:00
2025-01-13 13:16:41 +01:00
2025-09-22 07:30:00 +08:00
2025-08-14 09:34:38 +02:00
2024-08-08 08:11:53 +00:00
2026-02-19 06:07:16 +08:00
2025-08-14 09:34:38 +02:00
2025-12-25 15:38:45 +08:00
2026-02-28 04:33:47 +00:00
2025-08-20 21:45:49 -04:00
2024-06-11 11:11:38 +02:00
2026-02-13 09:02:10 +00:00
2025-08-14 09:34:38 +02:00
2023-11-12 22:01:28 +01:00
2026-01-24 10:04:44 +08:00
2025-08-14 09:34:38 +02:00
2026-03-14 08:07:55 -04:00
2026-03-16 11:29:47 -04:00
2026-02-12 13:46:45 +01:00
2025-09-26 00:29:40 -04:00
2025-08-14 09:34:38 +02:00
2026-02-04 23:36:57 +00:00
2025-08-14 09:34:38 +02:00
2024-11-04 13:12:33 +01:00
2026-03-15 19:02:49 -04:00
2025-08-14 09:34:38 +02:00
2025-12-28 07:01:45 +08:00
2025-09-26 00:29:40 -04:00
2025-08-14 09:34:38 +02:00
2026-02-18 01:57:59 -05:00
2026-03-10 09:13:30 +08:00
2025-08-14 09:34:38 +02:00
2026-03-17 12:11:55 +00:00
2026-03-03 23:42:05 +00:00
2025-08-14 09:34:38 +02:00
2026-03-11 18:00:18 +01:00
2025-08-14 09:34:38 +02:00
2025-11-21 08:02:20 +08:00
2025-08-14 09:34:38 +02:00
2026-03-12 05:48:14 -04:00
2025-10-10 07:14:50 -07:00
2023-11-30 19:52:23 +08:00
2025-10-04 04:28:30 +00:00
2025-08-14 09:34:38 +02:00
2026-03-15 06:26:53 +08:00
2025-08-14 09:34:38 +02:00
2025-11-16 20:36:07 -08:00
2024-01-05 22:26:07 +08:00
2026-03-11 23:42:31 +00:00
2025-08-14 09:34:38 +02:00
2025-09-26 00:29:40 -04:00
2026-03-15 19:02:49 -04:00
2025-09-26 00:29:40 -04:00
2025-02-25 23:40:21 +00:00
2026-03-09 15:22:48 -04:00
2025-12-28 14:26:29 +08:00
2026-01-17 06:34:34 +08:00
2025-08-14 09:34:38 +02:00
2025-08-14 09:34:38 +02:00
2025-08-14 09:34:38 +02:00
2025-10-05 10:46:10 -04:00
2025-08-14 09:34:38 +02:00
2024-07-07 07:21:14 +08:00
2026-02-08 09:47:02 -05:00
2025-08-14 09:34:38 +02:00
2024-01-11 21:37:23 +01:00
2026-02-08 09:47:02 -05:00
2025-08-14 09:34:38 +02:00
2026-01-05 14:11:31 +08:00
2025-08-14 09:34:38 +02:00
2026-03-16 07:46:34 -04:00
2025-08-14 09:34:38 +02:00
2025-06-09 18:57:28 +02:00
2025-08-14 09:34:38 +02:00
2025-08-14 09:34:38 +02:00
2026-02-15 12:16:51 -05:00
2026-03-14 19:27:20 +00:00
2025-09-13 13:34:58 -07:00
2026-03-05 11:52:56 +01:00
2025-08-14 09:34:38 +02:00
2024-01-11 21:37:23 +01:00
2026-02-08 09:47:02 -05:00
2025-08-14 09:34:38 +02:00
2026-03-10 09:13:30 +08:00
2025-08-14 09:34:38 +02:00
2026-03-16 09:56:36 +00:00
2026-02-13 13:49:08 +00:00
2026-02-22 07:02:47 +08:00
2025-08-14 09:34:38 +02:00
2026-03-08 23:58:14 +00:00
2025-08-14 09:34:38 +02:00
2025-08-14 09:34:38 +02:00
2025-08-14 09:34:38 +02:00
2026-03-03 11:23:20 +01:00
2025-08-14 09:34:38 +02:00
2025-08-14 09:34:38 +02:00
2026-03-06 08:49:09 +08:00
2025-08-14 09:34:38 +02:00
2026-03-11 07:38:18 -04:00
2025-08-14 09:34:38 +02:00
2025-09-13 22:49:50 -04:00
2026-03-09 19:24:01 -04:00
2025-08-14 09:34:38 +02:00
2024-01-11 21:37:23 +01:00
2026-03-11 14:16:35 -04:00
2025-08-14 09:34:38 +02:00
2025-12-06 20:33:02 -05:00
2025-08-14 09:34:38 +02:00
2026-03-14 05:09:58 -04:00
2025-12-01 02:34:51 -05:00
2025-11-19 20:43:15 -08:00
2026-03-11 18:17:46 +01:00
2026-03-17 00:02:32 +00:00
2026-01-17 10:58:26 +08:00
2026-03-14 20:48:32 +00:00
2025-08-14 09:34:38 +02:00