mirror of
https://github.com/zed-industries/zed.git
synced 2025-02-03 17:44:30 +00:00
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:
parent
f7a7866d4a
commit
6bb21b1e5e
1 changed files with 5 additions and 1 deletions
|
@ -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| {
|
||||
|
|
Loading…
Reference in a new issue