disable some of the recent caching stuff
The cache key isn't quite right, leading to some artifacts in some cases. I have a cunning plan, but it will take me a bit to wrap it up, so in the meantime, disable these caches. refs: https://github.com/wez/wezterm/issues/2455
This commit is contained in:
1 parent
5e993c581a
commit
c4ea703d4b
1 file changed
+4
-1
@@ -167,7 +167,9 @@ pub struct LineToElementShapeKey {
|
||||
|
||||
impl LineToElementShapeKey {
|
||||
pub fn is_cacheable(&self) -> bool {
|
||||
self.pane_id.is_some()
|
||||
// FIXME: it's not generaly valid to cache based on seqno/line idx.
|
||||
// will fix this properly layer, but for now, just bypass caching
|
||||
self.pane_id.is_some() && false
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1376,6 +1378,7 @@ impl super::TermWindow {
|
||||
if cached.seqno == seqno
|
||||
&& cached.stable_range == stable_range
|
||||
&& !pane_is_overlay_that_aliases_pane_id(&pos.pane)
|
||||
&& false // FIXME caching busted
|
||||
{
|
||||
Some((cached.top, Rc::clone(&cached.lines)))
|
||||
} else {
|
||||
|
||||
Reference in new issue
Block a user