mirror of
https://github.com/hyzendust/KickestEnd.nvim.git
synced 2026-02-15 05:01:14 +01:00
Fix: ascii_art changed when switching to old tabs
This commit is contained in:
@@ -104,7 +104,13 @@ return {
|
||||
vim.api.nvim_create_autocmd('User', {
|
||||
pattern = 'AlphaReady',
|
||||
callback = function()
|
||||
refresh_header()
|
||||
local tab = vim.api.nvim_get_current_tabpage()
|
||||
-- Only refresh if this tab doesn't have stored ASCII
|
||||
if not _G.alpha_tab_ascii[tab] then
|
||||
refresh_header()
|
||||
local dashboard = require 'alpha.themes.dashboard'
|
||||
_G.alpha_tab_ascii[tab] = vim.deepcopy(dashboard.section.header.val)
|
||||
end
|
||||
end,
|
||||
})
|
||||
end,
|
||||
|
||||
Reference in New Issue
Block a user