Merge pull request #211 from KPatr1ck/fix_next_up

Fix nil index in next_up.
This commit is contained in:
Steven Arcangeli 2023-01-31 12:11:58 -08:00 committed by GitHub
commit c222e5abb5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -110,6 +110,7 @@ M.up = function(direction, count)
elseif target_level then
if item.level == target_level or item.level < start_level then
found = true
index = bufdata:indexof(item)
break
end
end