Use <C-h> and support cmdwin

This commit is contained in:
hrsh7th
2021-10-10 00:01:15 +09:00
parent 339fe9177b
commit 883eee5bbc
5 changed files with 15 additions and 8 deletions

View File

@@ -137,11 +137,11 @@ window.update = function(self)
end
else
if self.swin1 and vim.api.nvim_win_is_valid(self.swin1) then
vim.api.nvim_win_close(self.swin1, false)
vim.api.nvim_win_close(self.swin1, true)
self.swin1 = nil
end
if self.swin2 and vim.api.nvim_win_is_valid(self.swin2) then
vim.api.nvim_win_close(self.swin2, false)
vim.api.nvim_win_close(self.swin2, true)
self.swin2 = nil
end
end