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
This commit is contained in:
Murt 2025-05-06 03:17:45 -07:00 committed by GitHub
parent 06794f35bc
commit 848c4f77a6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -757,7 +757,7 @@ impl VimGlobals {
} }
if kind.linewise() || contains_newline { if kind.linewise() || contains_newline {
let mut content = content; let mut content = content;
for i in '1'..'8' { for i in '1'..='9' {
if let Some(moved) = self.registers.insert(i, content) { if let Some(moved) = self.registers.insert(i, content) {
content = moved; content = moved;
} else { } else {