pub fn selection_movement(
m: Movement,
s: &Selection,
view: &View,
text: &Rope,
modify: bool,
) -> Selection
Expand description
Compute a new selection by applying a movement to an existing selection.
In a multi-region selection, this function applies the movement to each region in the selection, and returns the union of the results.
If modify
is true
, the selections are modified, otherwise the results
of individual region movements become carets.