mirror of
https://github.com/folke/snacks.nvim
synced 2025-08-04 10:49:08 +00:00
fix(words): default count to 1. Closes #1307
This commit is contained in:
parent
8127fddc57
commit
45ec90bdd9
1 changed files with 2 additions and 1 deletions
|
@ -128,9 +128,10 @@ function M.get()
|
|||
return ret, current
|
||||
end
|
||||
|
||||
---@param count number
|
||||
---@param count? number
|
||||
---@param cycle? boolean
|
||||
function M.jump(count, cycle)
|
||||
count = count or 1
|
||||
local words, idx = M.get()
|
||||
if not idx then
|
||||
return
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue