mirror of
https://github.com/ThePrimeagen/harpoon.git
synced 2025-07-13 17:40:25 +00:00
look, a commit message class
This commit is contained in:
parent
9fbc24280d
commit
af2b1f9071
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user