From 4075e613b2d38ee77e8843e9db1bf9d42af0cd49 Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Thu, 3 Oct 2024 10:57:54 +0800 Subject: [PATCH] fix(defaults): properly pass count to quickfix commands (#30632) --- runtime/lua/vim/_defaults.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/runtime/lua/vim/_defaults.lua b/runtime/lua/vim/_defaults.lua index 09670f4c32..6dd1c938de 100644 --- a/runtime/lua/vim/_defaults.lua +++ b/runtime/lua/vim/_defaults.lua @@ -225,13 +225,13 @@ do }) vim.keymap.set('n', '[Q', function() - vim.cmd.crewind({ args = vim.v.count ~= 0 and { vim.v.count } or nil }) + vim.cmd.crewind({ count = vim.v.count ~= 0 and vim.v.count or nil }) end, { desc = ':crewind', }) vim.keymap.set('n', ']Q', function() - vim.cmd.clast({ args = vim.v.count ~= 0 and { vim.v.count } or nil }) + vim.cmd.clast({ count = vim.v.count ~= 0 and vim.v.count or nil }) end, { desc = ':clast', }) @@ -262,13 +262,13 @@ do }) vim.keymap.set('n', '[L', function() - vim.cmd.lrewind({ args = vim.v.count ~= 0 and { vim.v.count } or nil }) + vim.cmd.lrewind({ count = vim.v.count ~= 0 and vim.v.count or nil }) end, { desc = ':lrewind', }) vim.keymap.set('n', ']L', function() - vim.cmd.llast({ args = vim.v.count ~= 0 and { vim.v.count } or nil }) + vim.cmd.llast({ count = vim.v.count ~= 0 and vim.v.count or nil }) end, { desc = ':llast', })