.. [no ci]

This commit is contained in:
sxyazi 2023-10-23 13:15:19 +08:00
parent 03bc86f46f
commit 3d6204bf5c
No known key found for this signature in database
2 changed files with 3 additions and 12 deletions

View file

@ -57,9 +57,9 @@ impl Ueberzug {
async fn send_command(child: &mut Child, cmd: Option<(PathBuf, Rect)>) -> Result<()> {
let stdin = child.stdin.as_mut().unwrap();
if let Some((path, tmp_rect)) = cmd {
debug!("ueberzug rect before adjustment: {:?}", tmp_rect);
let rect = Self::adjust_rect(tmp_rect);
if let Some((path, rect)) = cmd {
debug!("ueberzug rect before adjustment: {:?}", rect);
let rect = Self::adjust_rect(rect);
debug!("ueberzug rect after adjustment: {:?}", rect);
let s = format!(

View file

@ -6,15 +6,6 @@ use yazi_shared::expand_path;
use crate::{xdg::Xdg, MERGED_YAZI};
#[derive(Debug, Deserialize)]
pub struct UeberzugPreview {
pub scale_down_factor: f64,
pub x_offset: f64,
pub y_offset: f64,
pub width_offset: f64,
pub height_offset: f64,
}
#[derive(Debug)]
pub struct Preview {
pub tab_size: u32,