Move new function 'merge_list' from deepin-terminal.