aznhe21 / actions-preview.nvim

Fully customizable previewer for LSP code actions.
GNU General Public License v3.0
365 stars 9 forks source link

fix: nui wrong window focus #33

Closed daver32 closed 4 months ago

daver32 commented 5 months ago

Fix for when using the Nui backend with splits, the focused window isn't preserved on accept/dismiss.

As a sidenote, nui only calls on_submit or on_close, so maybe the job cleanup in on_close should also be run in on_submit?

aznhe21 commented 4 months ago

Thanks!

As a sidenote, nui only calls on_submit or on_close, so maybe the job cleanup in on_close should also be run in on_submit?

Indeed, you are correct. I will fix it.