Skip to content

Commit

Permalink
edit predictions: Fix fold not expanding after jump (#25116)
Browse files Browse the repository at this point in the history
Closes #24938.

Release Notes:

- Edit predictions: Fix fold not expanding after jump
  • Loading branch information
marcospb19 authored Feb 18, 2025
1 parent 6885b28 commit d0816ef
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crates/editor/src/editor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()),
Expand Down

0 comments on commit d0816ef

Please sign in to comment.