Skip to content

Commit 674b8df

Browse files
authored
Merge pull request #19 from musjj/patch-1
fix exception when showing a terminal window
2 parents 8790658 + 418f17f commit 674b8df

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lua/nvterm/terminal.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ nvterm.hide = function(type)
107107
end
108108

109109
nvterm.show = function(type)
110+
terminals = util.verify_terminals(terminals)
110111
local term = type and get_type_last(type) or terminals.last
111112
nvterm.show_term(term)
112113
end

0 commit comments

Comments
 (0)