mirror of
https://github.com/akinsho/toggleterm.nvim
synced 2024-09-16 21:34:03 +02:00
parent
b2b234941a
commit
6bec54e738
1 changed files with 1 additions and 0 deletions
|
@ -216,6 +216,7 @@ end
|
|||
---@package
|
||||
---Add a terminal to the list of terminals
|
||||
function Terminal:__add()
|
||||
if terminals[self.id] and terminals[self.id] ~= self then self.id = next_id() end
|
||||
if not terminals[self.id] then terminals[self.id] = self end
|
||||
return self
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue