e5f9ccad8e
workaround with index(term_list(), bufnr('')) > -1 not needed anymore, since vim 8.0.936 will correctly return 't' for the mode() function in the terminal.