diff --git a/autoload/ale/debugging.vim b/autoload/ale/debugging.vim index 89f5258f..fe145baf 100644 --- a/autoload/ale/debugging.vim +++ b/autoload/ale/debugging.vim @@ -340,6 +340,11 @@ function! ale#debugging#InfoCommand(...) abort return endif + " Do not show info for the info window itself. + if &filetype is# 'ale-info' + return + endif + " Get 'echo' from '-echo', if there's an argument. let l:mode = get(a:000, '')[1:] diff --git a/test/test_ale_info.vader b/test/test_ale_info.vader index 5f5936d6..e996169f 100644 --- a/test/test_ale_info.vader +++ b/test/test_ale_info.vader @@ -767,3 +767,6 @@ Execute (ALEInfo should include linter global options for enabled linters): \) +Given ale-info (An ALEInfo buffer): +Execute(ALEInfo should not report information about its own window): + call CheckInfo([])