symbols-outline.nvim icon indicating copy to clipboard operation
symbols-outline.nvim copied to clipboard

callback to close never works

Open gennaro-tedesco opened this issue 1 year ago • 1 comments

I have noticed that the panel with the symbol outline never closes when the associated buffer (from where the symbol outline was invoked) is wiped or changed or closed entirely; as a result one is left with a window of symbol outline open that is associated to nothing. In particular this is also mentioned in https://github.com/simrat39/symbols-outline.nvim/issues/93.

Having a look at the code it seems that the autocommand to close invokes a condition has_code_win() that never evaluates to true: the variable so.state.code_win is set to 1000 and this condition always returns false.

is my understanding incorrect or when exactly does the outline autoclose?

gennaro-tedesco avatar Oct 10 '22 20:10 gennaro-tedesco