From 2eec94652acd4a5223fed1c662376f58a044d525 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=89=E5=92=B2=E9=9B=85=20=C2=B7=20Misaki=20Masa?= Date: Mon, 27 May 2024 19:11:14 +0800 Subject: [PATCH] fix: Sixel support from certain `st` forks cannot be detected (#1094) --- yazi-shared/src/term/csi_u.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yazi-shared/src/term/csi_u.rs b/yazi-shared/src/term/csi_u.rs index 335fe59f..04a3e90d 100644 --- a/yazi-shared/src/term/csi_u.rs +++ b/yazi-shared/src/term/csi_u.rs @@ -16,10 +16,10 @@ impl Term { if stdin.read(&mut c).await? == 0 { bail!("unexpected EOF"); } + buf.push(c[0] as char); if c[0] == b'c' && buf.contains("\x1b[?") { break; } - buf.push(c[0] as char); } Ok(buf) };