pub fn encode_selections(selections: &[(Position, Position)], out: &mut Vec<u8>)
Encodes selections the way SetSelections and SelectionsChanged carry them, each an anchor and an active end, appending to out.
SetSelections
SelectionsChanged
out