edit predictions: Fix fold not expanding after jump (#25116)

Closes #24938.

Release Notes:

- Edit predictions: Fix fold not expanding after jump
This commit is contained in:
João Marcos 2025-02-18 18:55:00 -03:00 committed by GitHub
parent 6885b28c22
commit d0816ef2e2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -5128,6 +5128,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()),