def candidate_list_printing(result_IDed):
    '''
    Print candidate list to the messagebox
    '''
    for case in result_IDed:
        if case[0] != u"":
            vim.command('call thesaurus_query#echo_HL("Keyword|Found as: |None|{}\\n")'.format(encode_utf_8(case[0])))
        vim.command('call thesaurus_query#echo_HL("Keyword|Synonyms: |None|")')
        col_count = 10
        col_count_max = int(vim.eval("&columns"))
        for synonym_i in case[1]:
            if (col_count+len(synonym_i)+1)<col_count_max:
                vim.command('echon "{} "'.format(encode_utf_8(synonym_i)))
                col_count += len(synonym_i)+1
            else:
                vim.command('echon "\n          {} "'.format(encode_utf_8(synonym_i)))
                col_count = 10 + len(synonym_i)+1
        vim.command('echon "\n"')
dataset/ETHPy150Open Ron89/thesaurus_query.vim/autoload/thesaurus_query/thesaurus_query.py/candidate_list_printing/original