def on_deactivated(self, view):
        # Because views load asynchronously, do not restore history index
        # .on_activated(), but here instead. Otherwise, the .score_selector()
        # call won't yield the desired results.
        if view.score_selector(0, 'text.excmdline') > 0:
            CycleCmdlineHistory.HISTORY_INDEX = None
dataset/ETHPy150Open SublimeText/VintageEx/vintage_ex.py/HistoryIndexRestorer.on_deactivated/original