diff --git a/crates/vim/src/normal/paste.rs b/crates/vim/src/normal/paste.rs index 8b6e94c63091d3973c89efd1c4fa9552eec8b4e5..a3fc7a960ef508f325d9cec4ea3b4bc38288b35e 100644 --- a/crates/vim/src/normal/paste.rs +++ b/crates/vim/src/normal/paste.rs @@ -943,6 +943,22 @@ mod test { "}, Mode::Normal, ); + cx.simulate_keystrokes("g r r"); + cx.assert_state( + indoc! {" + fisˇh + two three + "}, + Mode::Normal, + ); + cx.simulate_keystrokes("j w g r $"); + cx.assert_state( + indoc! {" + fish + two fisˇh + "}, + Mode::Normal, + ); let clipboard: Register = cx.read_from_clipboard().unwrap().into(); assert_eq!(clipboard.text, "fish"); }