Closed JJJHolscher closed 6 months ago
Definitely a bug, the image should stay on unless attached to a buffer. Will look into it!
Edit: wohoo issue #100
It was a bug in the logic handling clearing the images on window close, fixed now.
Thanks, this indeed fixed it for me.
When changing buffer (I type
:e other.file
), the image disappears, but I want it to stay there. I currently fix this by rerendering it on an autocommand, but this results in an unappealing flicker whenever I change buffers.This might also resolve the issue where I need to time my image rendering a bit after buffer switching, lest it gets wiped after showing for a single frame. Though that is not the main thing I'm asking for here.
See here for the code that gets this behavior:
ugly hotfix to deal with images disappearing after 1 frame: