(self, target_line, select = False)
| 266 | self.move_cursor_left(select) |
| 267 | |
| 268 | def set_cursor_position_vertical(self, target_line, select = False): |
| 269 | move_function = self.move_cursor_up |
| 270 | if target_line > self.get_line_index(select): |
| 271 | move_function = self.move_cursor_down |
| 272 | move_amount = abs(self.current_line_index - target_line) |
| 273 | for i in range(move_amount): |
| 274 | move_function(select) |
| 275 | |
| 276 | def get_character_index(self, select = False): |
| 277 | if select: return self.text_block.select_end_character |
no test coverage detected