mirror of
https://github.com/stevearc/aerial.nvim
synced 2024-09-16 14:34:08 +02:00
Fix nil index in next_up.
This commit is contained in:
parent
911373eb6b
commit
f66c0ea0e5
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue