From 848c4f77a647314ee26ba7bbe858efa8c1626e8b Mon Sep 17 00:00:00 2001 From: Murt Date: Tue, 6 May 2025 03:17:45 -0700 Subject: [PATCH] fix(vim): Store up to the 9th numbered register instead of 7th (#29986) Release Notes: - Fixed an issue where we only automatically stored 7 numbered registers instead of 9 --- crates/vim/src/state.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/vim/src/state.rs b/crates/vim/src/state.rs index a6df5f33ba..470f527edd 100644 --- a/crates/vim/src/state.rs +++ b/crates/vim/src/state.rs @@ -757,7 +757,7 @@ impl VimGlobals { } if kind.linewise() || contains_newline { let mut content = content; - for i in '1'..'8' { + for i in '1'..='9' { if let Some(moved) = self.registers.insert(i, content) { content = moved; } else {