code: def new_text_and_position(self):
          
          if self.complete_index is None:
              return self.original_document.text, self.original_document.cursor_position
          else:
              original_text_before_cursor = self.original_document.text_before_cursor
              original_text_after_cursor = self.original_document.text_after_cursor
  
              c = self.current_completions[self.complete_index]
              if c.start_position == 0:
                  before = original_text_before_cursor
              else:
                  before = original_text_before_cursor[:c.start_position]
  
              new_text = before + c.text + original_text_after_cursor
              new_cursor_position = len(before) + len(c.text)
              return new_text, new_cursor_position
docs: Return (new_text, new_cursor_position) for this completion.