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

Method select_current_string

text_block.py:205–210  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

203 self.remove_character_before_cursor()
204
205 def select_current_string(self):
206 string_letter = self.get_string_definition_type(self.current_line, self.current_character_index)
207 if string_letter is None: return
208 start, end = self.get_range_surrounded_by_letter(self.current_line, string_letter, self.current_character_index)
209 if start != end:
210 self.set_selection_in_line(start, end)
211
212 def get_string_definition_type(self, text, current_index):
213 string_letter = None

Callers 1

Tested by

no test coverage detected