From b573a39cbc4375b33afb2e2d88155069e3fc030f Mon Sep 17 00:00:00 2001 From: Max Brunsfeld Date: Fri, 18 Feb 2022 17:00:57 -0800 Subject: [PATCH] Ensure we never leak block decorations when renaming --- crates/editor/src/editor.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/editor/src/editor.rs b/crates/editor/src/editor.rs index a14f37306a..ebe24da4e2 100644 --- a/crates/editor/src/editor.rs +++ b/crates/editor/src/editor.rs @@ -4131,6 +4131,7 @@ impl Editor { tail_buffer_offset.saturating_sub(rename_buffer_range.start); this.update(&mut cx, |this, cx| { + this.take_rename(cx); let settings = (this.build_settings)(cx); let buffer = this.buffer.read(cx).read(cx); let cursor_offset = selection.head().to_offset(&buffer);