diff --git a/crates/editor/src/editor.rs b/crates/editor/src/editor.rs index 4d77dc113d..e58f1fc341 100644 --- a/crates/editor/src/editor.rs +++ b/crates/editor/src/editor.rs @@ -4979,6 +4979,8 @@ impl Editor { self.change_selections(None, cx, |s| { s.select_ranges(vec![cursor_in_editor..cursor_in_editor]) }); + } else { + self.refresh_document_highlights(cx); } Some(rename)