Files
zed/crates/vim/test_data
FanteriaandSmit Barmase d48afc8724 vim: Fix dot repeat after macro replay not capturing insertion text (#57684)
Closes #47251

Fix dot (`.`) repeat not correctly repeating the last change after
replaying a macro (`@register`)
([#47251](https://github.com/zed-industries/zed/issues/47251))

When replaying a macro that contains text insertions,
`replay_insert_event` calls `handle_input` directly and never emits
`InputHandled`, so the `observe_insertion` subscription never fires.
This left the dot register stale — `.` after `@register` would repeat an
earlier change instead of the last one made by the macro.

Fix by calling `observe_insertion` explicitly in the
`ReplayableAction::Insertion` branch of `Replayer::next`.

Release Notes:

- Fixed dot (`.`) repeat not repeating the last change made by a macro
(`@register`).

---------

Co-authored-by: Smit Barmase <heysmitbarmase@gmail.com>
2026-05-27 14:36:41 +00:00
..
2024-06-14 10:16:59 -06:00
2024-05-11 14:04:05 -04:00
2024-05-09 21:18:56 -06:00
2024-05-09 21:18:56 -06:00
2023-09-12 09:56:23 -06:00
2024-01-21 22:00:35 -07:00
2023-09-20 20:44:41 -06:00
2025-04-16 17:24:24 +00:00
2023-09-27 23:09:09 -06:00
2024-05-09 21:18:56 -06:00
2023-04-20 15:25:11 -06:00
2024-05-11 14:04:05 -04:00
2024-05-09 21:18:56 -06:00
2024-09-20 13:02:39 -06:00
2024-06-14 10:16:59 -06:00
2023-09-27 19:49:31 -06:00
2023-10-09 21:48:50 -06:00
2024-01-21 22:00:35 -07:00
2024-06-14 10:16:59 -06:00
2024-05-11 14:04:05 -04:00
2024-05-11 14:04:05 -04:00
2024-05-11 14:04:05 -04:00
2024-03-13 23:12:12 -06:00
2023-08-15 10:00:45 -06:00
2023-08-17 17:13:23 -06:00
2023-09-12 09:56:23 -06:00