diff --git a/crates/vim/src/test/neovim_connection.rs b/crates/vim/src/test/neovim_connection.rs index 3e59080b13..e44e8d0e4c 100644 --- a/crates/vim/src/test/neovim_connection.rs +++ b/crates/vim/src/test/neovim_connection.rs @@ -237,6 +237,9 @@ impl NeovimConnection { #[cfg(not(feature = "neovim"))] pub async fn set_option(&mut self, value: &str) { + if let Some(NeovimData::Get { .. }) = self.data.front() { + self.data.pop_front(); + }; assert_eq!( self.data.pop_front(), Some(NeovimData::SetOption {