Skip to main content

up

Function up 

Source
pub fn up(text: &Rope, pos: usize, goal: Option<usize>) -> usize
Expand description

Move one line up, aiming for goal if the caller is tracking a sticky column.

Returns pos unchanged on the first line, so holding Up parks the cursor rather than wrapping around to the end of the file.