From b7109ea4fcd58262a7347bdda1f6b4c91a159b40 Mon Sep 17 00:00:00 2001 From: Max Brunsfeld Date: Tue, 12 Jul 2022 17:01:18 -0700 Subject: [PATCH] Restore document highlights when canceling a rename --- crates/editor/src/editor.rs | 2 ++ 1 file changed, 2 insertions(+) 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)