improved cursor move for empty separator