neovim

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

commit 4075e613b2d38ee77e8843e9db1bf9d42af0cd49
parent 184d5e75434f52170df930dcb6928014d03a7081
Author: zeertzjq <zeertzjq@outlook.com>
Date:   Thu,  3 Oct 2024 10:57:54 +0800

fix(defaults): properly pass count to quickfix commands (#30632)


Diffstat:
Mruntime/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 @@ -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', })