MCPcopy Create free account
hub / github.com/JacquesLucke/code_autocomplete / set_cursor_position_horizontal

Method set_cursor_position_horizontal

text_block.py:259–261  ·  view source on GitHub ↗
(self, target_index, select = False)

Source from the content-addressed store, hash-verified

257 self.set_cursor_position_horizontal(character_index, select)
258
259 def set_cursor_position_horizontal(self, target_index, select = False):
260 self.move_cursor_to_line_end(select)
261 self.move_cursor_left_to_target_index(target_index, select)
262
263 def move_cursor_left_to_target_index(self, target_index, select):
264 target_index = max(1, target_index)

Callers 2

set_cursor_positionMethod · 0.95

Tested by

no test coverage detected