From 64447844b890f6e64ff78f3dca63081bdeab4193 Mon Sep 17 00:00:00 2001 From: abeldekat <58370433+abeldekat@users.noreply.github.com> Date: Tue, 22 Sep 2026 09:45:02 +0200 Subject: [PATCH] fix(basics): apply `` mapping only if not manually created before Resolve #2557 --- lua/mini/basics.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/mini/basics.lua b/lua/mini/basics.lua index d062e29c..5af83e01 100644 --- a/lua/mini/basics.lua +++ b/lua/mini/basics.lua @@ -575,7 +575,7 @@ H.apply_mappings = function(config) local mc_clear = 'call nvim_buf_clear_namespace(0, nvim_create_namespace("nvim.multicursor"), 0, -1)' local cmds = { 'silent normal! ', 'let v:hlsearch = 0', 'diffupdate', mc_clear, 'silent normal! ' } if vim.fn.has('nvim-0.13') == 0 then table.remove(cmds, 4) end - map('n', '', '' .. table.concat(cmds, '') .. '', { desc = 'Stop, clear, redraw' }) + map('n', '', '' .. table.concat(cmds, '') .. '', { desc = 'Stop, clear, redraw' }) -- Alternative way to save and exit in Normal mode. -- NOTE: Adding `redraw` helps with `cmdheight=0` if buffer is not modified