mirror of
https://github.com/ThePrimeagen/harpoon.git
synced 2025-07-14 01:50:27 +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)
|
M.gotoTerminal = function(idx)
|
||||||
local term_handle = terminals[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()
|
local buf_id, term_id = create_terminal()
|
||||||
if buf_id == nil then
|
if buf_id == nil then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
term_handle = {
|
term_handle = {
|
||||||
buf_id = buf_id,
|
buf_id = buf_id,
|
||||||
term_id = term_id
|
term_id = term_id
|
||||||
|
Loading…
x
Reference in New Issue
Block a user