Skip to main content

invalidate_folds

Function invalidate_folds 

Source
pub fn invalidate_folds(folds: &mut Vec<Fold>, start_row: usize, end_row: usize)
Expand description

Drop every fold in folds that touches [start_row, end_row], in place.

Free helper so both crate::Buffer::invalidate_folds_in_range (operating on the shared content) and the app’s window-level edit-coherence pass (operating on a sibling window’s owned Vec<Fold>) share one rule — vim opens/forgets any fold the edit overlapped.