Handling multiple selected lines in cycling