ZIm/crates/vim/src
Thomas Heartman 82338e2c47
vim: Fix clear exchange not working (#25804)
Fixes two issues with the Vim exchange implementation:

1. The clear exchange implementation **didn't** clear the exchange. This
was due to us asking the editor to clear normal highlights instead of
background highlights.
2. Calling clear exchange also wouldn't cause the operator to be
cleared, so you would be left in operator = "cx".

I've added tests for both of these cases.

Partially closes #25750. It doesn't address the problem with dot repeat
not working for my custom bindings, but I don't know what would cause
that. I'd love to hear some thoughts on why that is. That might be a
problem on my part or it might be something with the code. Input would
be appreciated.

Release Notes:

- Fixed: Vim exchange's "clear exchange" function didn't clear the
exchange and kept you in operator pending mode.
2025-03-04 19:34:52 -07:00
..
digraph Add Vim digraphs (#14887) 2024-07-28 22:44:32 -06:00
normal Make buffer search aware of search direction (#24974) 2025-03-04 19:27:37 -07:00
test vim: Fix key navigation on folded buffer headers (#25944) 2025-03-03 14:44:39 -07:00
change_list.rs Eliminate GPUI View, ViewContext, and WindowContext types (#22632) 2025-01-26 03:02:45 +00:00
command.rs keymap: Update Prev to Previous follow-up (#25931) 2025-03-03 21:19:25 +05:30
digraph.rs Eliminate GPUI View, ViewContext, and WindowContext types (#22632) 2025-01-26 03:02:45 +00:00
helix.rs Eliminate GPUI View, ViewContext, and WindowContext types (#22632) 2025-01-26 03:02:45 +00:00
indent.rs Eliminate GPUI View, ViewContext, and WindowContext types (#22632) 2025-01-26 03:02:45 +00:00
insert.rs Eliminate GPUI View, ViewContext, and WindowContext types (#22632) 2025-01-26 03:02:45 +00:00
mode_indicator.rs Display case-sensitive keybindings for vim commands (#24322) 2025-02-14 22:03:59 -07:00
motion.rs vim: Fix key navigation on folded buffer headers (#25944) 2025-03-03 14:44:39 -07:00
normal.rs vim: Add exchange (#24678) 2025-02-22 20:36:21 +00:00
object.rs vim: Fix back quotes not recognized as object (#24999) 2025-02-26 14:21:12 -05:00
replace.rs vim: Fix clear exchange not working (#25804) 2025-03-04 19:34:52 -07:00
rewrap.rs Eliminate GPUI View, ViewContext, and WindowContext types (#22632) 2025-01-26 03:02:45 +00:00
state.rs vim: Combine match arms in Mode::is_visual (#25675) 2025-02-26 19:45:04 +00:00
surrounds.rs Migrate keymap and settings + edit predictions rename (#23834) 2025-02-07 21:17:07 +05:30
test.rs vim: Fix key navigation on folded buffer headers (#25944) 2025-03-03 14:44:39 -07:00
vim.rs vim: Add ability to change default mode (#25067) 2025-02-26 13:51:07 -05:00
visual.rs vim: Refactor and fix multiline operations (#25055) 2025-02-24 18:30:21 -07:00