From c916bdf3298608d26ec6f68dd7eb0f830e7b7909 Mon Sep 17 00:00:00 2001 From: Christian Clason Date: Fri, 2 May 2025 17:31:09 +0200 Subject: [PATCH] fix(extui): close message window with `q` Problem: Using `` does not follow precedent (from `checkhealth` etc.) for closing "information windows". Solution: Use `q` for close mapping. --- runtime/lua/vim/_extui/shared.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/runtime/lua/vim/_extui/shared.lua b/runtime/lua/vim/_extui/shared.lua index acd5d08e8b..95fc753b76 100644 --- a/runtime/lua/vim/_extui/shared.lua +++ b/runtime/lua/vim/_extui/shared.lua @@ -47,8 +47,8 @@ function M.tab_check_wins() local parser = assert(vim.treesitter.get_parser(M.bufs.cmd, 'vim', {})) M.cmd.highlighter = vim.treesitter.highlighter.new(parser) elseif type == 'more' then - -- Close more window with Ctrl-C. - vim.keymap.set('n', '', 'c', { buffer = M.bufs.more }) + -- Close more window with `q`, same as `checkhealth` + vim.keymap.set('n', 'q', 'c', { buffer = M.bufs.more }) end end