environment/lib/python2.7/site-packages/IPython/frontend/qt/console/bracket_matcher.py
def _cursor_position_changed(self):
        """ Updates the document formatting based on the new cursor position.
        """
        # Clear out the old formatting.
        self._text_edit.setExtraSelections([])

        # Attempt to match a bracket for the new cursor position.
        cursor = self._text_edit.textCursor()
        if not cursor.hasSelection():
            position = cursor.position() - 1
            match_position = self._find_match(position)
            if match_position != -1:
                extra_selections = [ self._selection_for_character(pos)
                                     for pos in (position, match_position) ]
                self._text_edit.setExtraSelections(extra_selections)
def _cursor_position_changed(self):
        # Clear out the old formatting.
        self._text_edit.setExtraSelections([])

        # Attempt to match a bracket for the new cursor position.
        cursor = self._text_edit.textCursor()
        if not cursor.hasSelection():
            position = cursor.position() - 1
            match_position = self._find_match(position)
            if match_position != -1:
                extra_selections = [ self._selection_for_character(pos)
                                     for pos in (position, match_position) ]
                self._text_edit.setExtraSelections(extra_selections)
def _cursor_position_changed ( self ) : # Clear out the old formatting. self . _text_edit . setExtraSelections ( [ ] ) # Attempt to match a bracket for the new cursor position. cursor = self . _text_edit . textCursor ( ) if not cursor . hasSelection ( ) : position = cursor . position ( ) - 1 match_position = self . _find_match ( position ) if match_position != - 1 : extra_selections = [ self . _selection_for_character ( pos ) for pos in ( position , match_position ) ] self . _text_edit . setExtraSelections ( extra_selections )
Updates the document formatting based on the new cursor position.
Updates the document formatting based on the new cursor position .