

def start_unite(state):
    (state, old_state) = state_logic(state)
    if (not state.buff):
        state.buff = make_pyunite_buffer(state)
    if (state.options['close_on_empty'] and (not len(state.source.candidates))):
        return
    saved = vim.current.window
    window_logic(state, old_state)
    set_buffer_syntax(state)
    if (not state.options['focus_on_open']):
        ui.change_window(saved, autocmd=True)
    states.add(state)

dataset/ETHPy150Open azure-satellite/pyunite/pyunite/core.py start_unite/original