def find_prev_thread(buf, (row, col)):
    predicate = lambda line: LineProperties(line).is_diffscuss
    return _find_last(buf, (row, col), predicate, reverse=True)
Block until the running command appears to have exited.
dataset/ETHPy150Open hut8labs/diffscuss/diffscuss/support/editor.py/find_prev_thread--crossover with--dataset/ETHPy150Open pyinvoke/invoke/invoke/runners.py/Runner.wait