mirror of https://github.com/folke/lazy.nvim.git
fix(ui): set current win only when its valid
This commit is contained in:
parent
3a7b8c8132
commit
3814883aaa
1
TODO.md
1
TODO.md
|
@ -60,3 +60,4 @@
|
|||
- [x] Most emojis in "Configuration" aren't shown for me.
|
||||
- [x] add section on how to uninstall
|
||||
- [x] add `:Packadd` command or something similar
|
||||
- [ ] headless install
|
||||
|
|
|
@ -81,7 +81,9 @@ function M.show(mode)
|
|||
vim.api.nvim_create_autocmd("VimEnter", {
|
||||
once = true,
|
||||
callback = function()
|
||||
vim.api.nvim_set_current_win(win)
|
||||
if win and vim.api.nvim_win_is_valid(win) then
|
||||
pcall(vim.api.nvim_set_current_win, win)
|
||||
end
|
||||
end,
|
||||
})
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue