From 75d1415eab261a97ca9540335931b06cf8154d49 Mon Sep 17 00:00:00 2001 From: sxyazi Date: Mon, 27 May 2024 07:46:52 +0800 Subject: [PATCH] fix: Sixel support from certain `st` forks cannot be detected --- 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) };