look, a commit message class

This commit is contained in:
ThePrimeagen 2021-02-24 18:50:53 -07:00
parent 9fbc24280d
commit af2b1f9071

View File

@ -29,11 +29,12 @@ end
M.gotoTerminal = function(idx)
local term_handle = terminals[idx]
if not term_handle then
if not term_handle or nvim_is_buf_valid(term_handle.buf_id) then
local buf_id, term_id = create_terminal()
if buf_id == nil then
return
end
term_handle = {
buf_id = buf_id,
term_id = term_id