rmagatti / goto-preview

A small Neovim plugin for previewing definitions using floating windows.
Apache License 2.0
779 stars 27 forks source link

fix: Add case where post_close_hook should run #104

Closed TJ-Adams closed 1 year ago

TJ-Adams commented 1 year ago

Hey I just discovered a case where the post_close_hook doesn't execute and it should. You can test this out by opening a floating window preview in the current buffer. For example you're in file.py and the definition that you want to go to is also in file.py the post close hook won't execute after closing the preview window. Sorry I missed this case in my previous pull request! This fixes it.

If there's any implementation changes you'd prefer or formatting please let me know!