From 963cb2bbdf0e251ddf4dd11bd0649de157baf4c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Marcos?= Date: Tue, 18 Feb 2025 18:55:00 -0300 Subject: [PATCH] edit predictions: Fix fold not expanding after jump (#25116) Closes #24938. Release Notes: - Edit predictions: Fix fold not expanding after jump --- 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 52f7c89c805173b774ce1ec5d5116fe941b7ac3d..d41fdc4038f46fe3e64165c1f3b7245f05bd98e8 100644 --- a/crates/editor/src/editor.rs +++ b/crates/editor/src/editor.rs @@ -4982,6 +4982,7 @@ impl Editor { .contains(&target.to_display_point(&position_map.snapshot).row()) || !self.edit_prediction_requires_modifier() { + self.unfold_ranges(&[target..target], true, false, cx); // Note that this is also done in vim's handler of the Tab action. self.change_selections( Some(Autoscroll::newest()),