fix(words): default count to 1. Closes #1307

This commit is contained in:
Folke Lemaitre 2025-02-19 15:12:58 +01:00
parent 8127fddc57
commit 45ec90bdd9
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040

View file

@ -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