pub fn move_selection<B: TextBuffer>(
buf: &B,
sel: &mut TextSelection<B::Pos>,
dir: TextMove,
extend: bool,
)Expand description
共用移动算法:extend = false 折叠选区,true 保持 anchor 只改 focus。
pub fn move_selection<B: TextBuffer>(
buf: &B,
sel: &mut TextSelection<B::Pos>,
dir: TextMove,
extend: bool,
)共用移动算法:extend = false 折叠选区,true 保持 anchor 只改 focus。