Closed shadmansaleh closed 2 years ago
I'm not experiencing this issue since I'm using Neovim 0.6 I'll fix it as soon as possible
This patch does seem to remove the error but I'm not sure if 0 is appropriate value in this case
diff --git a/lua/competitest/runner_ui.lua b/lua/competitest/runner_ui.lua
index c57d45e..409b359 100644
--- a/lua/competitest/runner_ui.lua
+++ b/lua/competitest/runner_ui.lua
@@ -422,7 +422,7 @@ function M.hide_ui()
end
end
M.options.ui_visible = false
- api.nvim_set_current_win(M.options.restore_winid)
+ api.nvim_set_current_win(M.options.restore_winid or 0)
end
function M.delete_ui()
@@ -434,7 +434,7 @@ function M.delete_ui()
end
M.options.ui_visible = false
M.options.viewer_visible = false
- api.nvim_set_current_win(M.options.restore_winid)
+ api.nvim_set_current_win(M.options.restore_winid or 0)
end
return M
@shadmansaleh thanks for your patch 9b3bc04a498564b47d20bd233069b4f41c665663 should fix this issue, could you give it a try?
I've been using this patch since morning and it seems to be working so closing the issue .
When I run
:CompetiTestRun
I get the following error.I'm using nvim-0.7 . I think you're calling
nvim_set_current_win
withnil
.