3rd / image.nvim

🖼️ Bringing images to Neovim.
MIT License
812 stars 35 forks source link

spamming error when in command-line-window #128

Closed jonboh closed 4 months ago

jonboh commented 4 months ago

When an image is displayed and one opens the [Command Line] history (with q:) image.nvim throws a huge amount of errors until the command-line-window is closed. image

It seems that the original error is this (which appears with some actions in the command-line-window): image

In order to avoid the problem I think it would be enough to check getcmdwintype() and prevent issuing whatever is triggering the error when getcmdwintype()!=''. I'll try to submit a PR if it works :)