zed/crates/vim/src
AidanV e1063743e8
vim: Fix global mark overwriting inconsistency (#44765)
Closes #43963

This issue was caused by the global marks not being deleted. Previously
marking the first file `m A`

<img width="1736" height="888" alt="Screenshot From 2025-12-13 01-37-55"
src="https://github.com/user-attachments/assets/9e46747f-7bb3-4297-82d4-44a20ef9e91a"
/>

followed by marking the second file `m A`

<img width="1736" height="888" alt="Screenshot From 2025-12-13 01-37-42"
src="https://github.com/user-attachments/assets/0d126b47-2c42-475f-826a-173c0d5a1156"
/>

and navigating back to the first file

<img width="1736" height="888" alt="Screenshot From 2025-12-13 01-37-30"
src="https://github.com/user-attachments/assets/032fd0bd-ff71-4a12-987a-7f1743016f6d"
/>

shows that the mark still exists and was not properly deleted. After
these changes the global mark in the original file is correctly
overwritten.

Added regression test for this.

Release Notes:

- Fixed bug where overwriting global Vim marks was inconsistent
2025-12-15 10:13:18 -07:00
..
digraph Add Vim digraphs (#14887) 2024-07-28 22:44:32 -06:00
helix multi_buffer: Typed MultiBufferOffset (#42707) 2025-11-19 22:00:58 +00:00
normal vim: Fix global mark overwriting inconsistency (#44765) 2025-12-15 10:13:18 -07:00
test vim: Add scroll keybindings for the OutlinePanel (#42438) 2025-12-15 15:40:37 +00:00
change_list.rs editor: Remove buffer and display map fields from SelectionsCollection (#42175) 2025-11-07 11:21:14 +01:00
command.rs Fix git features not working when a Windows host collaborates with a unix guest (#43515) 2025-11-26 16:56:34 +00:00
digraph.rs vim: Downgrade user config error from panic to log (#42070) 2025-11-06 08:37:04 +00:00
helix.rs editor: Don't merge adjacent selections (#44811) 2025-12-15 17:32:54 +01:00
indent.rs vim: Make indenting selected lines with > and < in Helix mode no longer deselect them (#37665) 2025-09-09 13:18:22 -06:00
insert.rs vim: Fix cursor movement after entering Helix normal mode (#40528) 2025-10-23 11:15:12 +00:00
mode_indicator.rs Theme-able Vim Mode wrapper (#39813) 2025-10-21 04:30:30 +00:00
motion.rs vim: Move to opening html tag from / in closing tag (#42513) 2025-12-02 12:58:20 -08:00
normal.rs vim: Fix paste action for visual modes (#43031) 2025-11-20 11:12:57 -07:00
object.rs Use single languages::{rust_lang, markdown_lang} in tests across the codebase (#44282) 2025-12-06 18:49:21 +00:00
replace.rs editor: Add active match highlight for buffer and project search (#44098) 2025-12-04 03:55:04 +05:30
rewrap.rs Remove unnecessary argument from Vim#update_editor (#36001) 2025-08-11 16:10:06 -06:00
state.rs vim: Fix global mark overwriting inconsistency (#44765) 2025-12-15 10:13:18 -07:00
surrounds.rs multi_buffer: Typed MultiBufferOffset (#42707) 2025-11-19 22:00:58 +00:00
test.rs commit view: Fix layout shift while loading commit (#44548) 2025-12-10 15:01:49 +00:00
vim.rs editor: Fix block cursor offset when selecting text (#42837) 2025-12-15 12:56:07 +00:00
visual.rs multi_buffer: Typed MultiBufferOffset (#42707) 2025-11-19 22:00:58 +00:00