dense-analysis / ale

Check syntax in Vim/Neovim asynchronously and fix files, with Language Server Protocol (LSP) support
BSD 2-Clause "Simplified" License
13.51k stars 1.43k forks source link

Prevent `:ALEInfo` from reporting info about its own preview window #4618

Open w0rp opened 1 year ago

w0rp commented 1 year ago

We can make :ALEInfo examine the list of buffers for the current window and find the first buffer that is not the preview window, if and only if the current buffer when the command is run is the preview window. This should give users a better chance of grabbing the right information for bug reports.