Migrate cached_layouts into layout_cache_t

This commit is contained in:
ridiculousfish
2020-05-30 14:59:35 -07:00
parent 7cc99a2d80
commit 67a4b35838
4 changed files with 34 additions and 26 deletions

View File

@@ -482,7 +482,7 @@ static void init_curses(const environment_t &vars) {
tigetflag(const_cast<char *>("xenl")) == 1; // does terminal have the eat_newline_glitch
update_fish_color_support(vars);
// Invalidate the cached escape sequences since they may no longer be valid.
cached_layouts.clear();
layout_cache_t::shared.clear();
curses_initialized = true;
}