Home
last modified time | relevance | path

Searched refs:InsertDrift (Results 1 – 5 of 5) sorted by relevance

/dports/editors/xi-core/xi-editor-0.3.0/rust/core-lib/src/
H A Dselection.rs35 pub enum InsertDrift { enum
204 pub fn apply_delta(&self, delta: &RopeDelta, after: bool, drift: InsertDrift) -> Selection { in apply_delta()
212 (InsertDrift::Inside, false) => (!is_region_forward, is_region_forward), in apply_delta()
213 (InsertDrift::Outside, false) => (is_region_forward, !is_region_forward), in apply_delta()
404 use super::{InsertDrift, SelRegion, Selection};
564 let s2 = s.apply_delta(&builder.build(), true, InsertDrift::Outside); in apply_delta_outside_drift()
581 let s2 = s.apply_delta(&builder.build(), true, InsertDrift::Inside); in apply_delta_inside_drift()
594 let s2 = s.apply_delta(&builder.build(), true, InsertDrift::Inside); in apply_delta_drift_ignored_for_carets()
599 let s3 = s.apply_delta(&builder.build(), false, InsertDrift::Inside); in apply_delta_drift_ignored_for_carets()
H A Deditor.rs37 use crate::selection::{InsertDrift, SelRegion, Selection};
282 pub(crate) fn commit_delta(&mut self) -> Option<(RopeDelta, Rope, InsertDrift)> { in commit_delta() argument
298 EditType::Transpose => InsertDrift::Inside, in commit_delta()
299 EditType::Surround => InsertDrift::Outside, in commit_delta()
300 _ => InsertDrift::Default, in commit_delta()
H A Dfind.rs21 use crate::selection::{InsertDrift, SelRegion, Selection};
145 self.occurrences = self.occurrences.apply_delta(delta, false, InsertDrift::Default); in update_highlights()
H A Dview.rs32 use crate::selection::{Affinity, InsertDrift, SelRegion, Selection};
984 drift: InsertDrift, in after_edit() argument
H A Devent_context.rs41 use crate::selection::InsertDrift;
297 fn update_views(&self, ed: &Editor, delta: &RopeDelta, last_text: &Rope, drift: InsertDrift) { in update_views() argument