Justin M. Keyes
ec7dab077b
fix(vim.hl): range(0,…) highlight not cleared after buffer-switch #40130
...
Problem:
When `vim.hl.range(0, …, { timeout = N })` is called, the deferred
`range_hl_clear` captures `buf=0`, which resolves to an arbitrary
"current buffer" at timeout. This may cause a stale highlight that never
gets cleared.
Solution:
Resolve `buf=0` explicitly, before `range_hl_clear` captures it.
2026-06-06 10:26:12 +00:00
..
2026-04-20 14:16:41 -04:00
2024-04-23 18:17:04 +02:00
2026-04-15 18:45:26 +00:00
2026-02-17 11:34:12 +08:00
2026-05-25 11:06:02 +02:00
2025-05-29 12:10:07 +02:00
2026-03-29 18:50:37 +02:00
2026-06-02 18:36:03 -04:00
2026-01-28 05:44:17 -05:00
2026-04-18 06:50:28 -04:00
2026-05-29 14:24:22 -04:00
2025-01-09 09:26:45 -08:00
2026-01-12 10:58:01 -08:00
2026-06-06 10:26:12 +00:00
2025-03-18 09:39:19 +01:00
2026-02-12 11:55:16 -05:00
2026-02-11 06:54:57 -05:00
2026-05-05 17:04:11 -04:00
2024-11-26 06:15:50 -08:00
2026-05-10 11:03:15 -04:00
2026-05-25 11:06:02 +02:00
2026-03-21 17:07:33 -04:00
2026-05-05 16:26:59 -04:00
2026-03-18 19:19:47 -04:00
2026-05-25 11:06:02 +02:00
2026-05-20 16:23:03 +08:00
2026-05-20 16:23:03 +08:00
2026-05-20 15:27:43 -04:00
2026-05-10 09:19:12 -04:00
2024-04-23 18:17:04 +02:00
2025-08-17 20:40:28 -07:00
2026-04-30 12:22:57 +02:00
2026-04-20 14:16:41 -04:00
2026-05-25 11:06:02 +02:00
2026-04-23 17:11:59 -04:00
2026-03-13 09:36:44 -04:00
2026-04-30 19:19:42 +02:00
2026-04-28 18:29:17 -04:00
2026-01-28 05:44:17 -05:00
2026-05-25 11:06:02 +02:00
2026-04-08 13:33:00 -04:00
2026-05-29 14:45:33 -04:00
2026-03-29 13:36:56 +02:00
2026-04-18 12:04:28 -04:00
2025-09-15 12:10:23 +02:00