Skip to main content

move_selection

Function move_selection 

Source
pub fn move_selection<B: TextBuffer>(
    buf: &B,
    sel: &mut TextSelection<B::Pos>,
    dir: TextMove,
    extend: bool,
)
Expand description

共用移动算法:extend = false 折叠选区,true 保持 anchor 只改 focus。