mirror of
https://github.com/itsjunetime/tdf.git
synced 2026-06-02 08:01:47 -04:00
Make it work correctly with ghostty image eviction too
This commit is contained in:
+4
-6
@@ -427,12 +427,10 @@ async fn enter_redraw_loop(
|
|||||||
|
|
||||||
if let Err((to_replace, err_desc, enum_err)) = maybe_err {
|
if let Err((to_replace, err_desc, enum_err)) = maybe_err {
|
||||||
match enum_err {
|
match enum_err {
|
||||||
// This is the error that kitty provides us when it deletes an image due to
|
// This is the error that kitty & ghostty provide us when they delete an
|
||||||
// memory constraints, so if we get it, we just fix it by re-rendering and
|
// image due to memory constraints, so if we get it, we just fix it by
|
||||||
// don't display it to the user
|
// re-rendering so it don't display it to the user
|
||||||
TransmitError::Terminal(TerminalError::NoEntity(e))
|
TransmitError::Terminal(TerminalError::NoEntity(_)) => (),
|
||||||
if e.contains("refers to non-existent image") =>
|
|
||||||
(),
|
|
||||||
_ => tui.set_msg(MessageSetting::Some(BottomMessage::Error(format!(
|
_ => tui.set_msg(MessageSetting::Some(BottomMessage::Error(format!(
|
||||||
"{err_desc}: {enum_err}"
|
"{err_desc}: {enum_err}"
|
||||||
))))
|
))))
|
||||||
|
|||||||
Reference in New Issue
Block a user