diff --git a/crates/vim/src/normal/repeat.rs b/crates/vim/src/normal/repeat.rs index 41c89269f1..6dceca4f8b 100644 --- a/crates/vim/src/normal/repeat.rs +++ b/crates/vim/src/normal/repeat.rs @@ -134,7 +134,11 @@ impl Replayer { let Ok(workspace) = handle.downcast::() else { return; }; - let Some(editor) = workspace.read(cx).active_item_as::(cx) else { + let Some(editor) = workspace + .read(cx) + .active_item(cx) + .and_then(|item| item.act_as::(cx)) + else { return; }; editor.update(cx, |editor, cx| {