neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

commit a59b052857ca43997b9e8be0a1d5c870ce172807
parent c9d8468020308fc7a77ad8930292e16cec2bf1b7
Author: phanium <91544758+phanen@users.noreply.github.com>
Date:   Sat, 24 May 2025 18:02:11 +0800

fix(extui): map wincmd instead of remapped key (#34151)

Problem: "q" cannot close window when `<c-w>` is mapped.
Solution: Map q to `<Cmd>wincmd c<CR>`.
Diffstat:
Mruntime/lua/vim/_extui/shared.lua | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/runtime/lua/vim/_extui/shared.lua b/runtime/lua/vim/_extui/shared.lua @@ -47,7 +47,7 @@ function M.tab_check_wins() M.cmd.highlighter = vim.treesitter.highlighter.new(parser) elseif type == 'more' then -- Close more window with `q`, same as `checkhealth` - api.nvim_buf_set_keymap(M.bufs.more, 'n', 'q', '<C-w>c', {}) + api.nvim_buf_set_keymap(M.bufs.more, 'n', 'q', '<Cmd>wincmd c<CR>', {}) end end