Fix vim repeat (.) and macro playback insertions in diagnostics and assistant (#22210)
Release Notes: - Fixed vim repeat (`.`) and macro playback of insertions in diagnostics and assistant. Co-authored-by: Conrad <conrad@zed.dev>
This commit is contained in:
@@ -134,7 +134,11 @@ impl Replayer {
|
||||
let Ok(workspace) = handle.downcast::<Workspace>() else {
|
||||
return;
|
||||
};
|
||||
let Some(editor) = workspace.read(cx).active_item_as::<Editor>(cx) else {
|
||||
let Some(editor) = workspace
|
||||
.read(cx)
|
||||
.active_item(cx)
|
||||
.and_then(|item| item.act_as::<Editor>(cx))
|
||||
else {
|
||||
return;
|
||||
};
|
||||
editor.update(cx, |editor, cx| {
|
||||
|
||||
Reference in New Issue
Block a user