From 15bf26632cf7d0be40cfd0a2a9462386ddd11e09 Mon Sep 17 00:00:00 2001 From: w0rp Date: Fri, 14 Mar 2025 09:19:41 +0000 Subject: [PATCH] Close #4618 - Do not show info for the ALEInfo window --- autoload/ale/debugging.vim | 5 +++++ test/test_ale_info.vader | 3 +++ 2 files changed, 8 insertions(+) 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([])