shortcut for saving and zoom is better by default rip

This commit is contained in:
2025-04-13 19:36:55 +02:00
parent 3251523039
commit 8f0b7d872d
2 changed files with 22 additions and 13 deletions

View File

@@ -44,13 +44,9 @@ pub fn save_action(txt: &str, file: &mut File) -> Result<(), std::io::Error> {
file.write_all(string.as_bytes())?;
let map = tree_to_map(&mut tree, true);
eprintln!("&txt = {:?}", &txt);
let trad = body_to_bin(&txt, map);
eprintln!("trad = {:?}", trad);
let trad_bin = string_to_binary(&trad);
eprintln!("trad_bin = {:?}", trad_bin);
let len_body = trad.len() as u32;
eprintln!("len_body = {:?}", len_body);
file.write_all(&len_body.to_be_bytes())?;
file.write_all(&trad_bin)?;
Ok(())