Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions lua/neo-tree/ui/selector.lua
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,11 @@ M.get_scrolled_off_node_text = function(state)
return
end
end

if not state.tree then
return
end

local win_top_line = vim.fn.line("w0")
if win_top_line == nil or win_top_line == 1 then
return
Expand Down
Loading