Skip to content
Open
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
3 changes: 3 additions & 0 deletions lua/alpha.lua
Original file line number Diff line number Diff line change
Expand Up @@ -651,6 +651,9 @@ function alpha.move_cursor(window)
end

function alpha.redraw(conf, state)
if not vim.api.nvim_buf_is_valid(state.buffer) then
return
end
if (conf == nil) and (state == nil) then
local buffer = vim.api.nvim_get_current_buf()
local alpha_prime = vim.tbl_get(alpha_state, buffer) or head(alpha_state)
Expand Down