From 82913ff77a7fc8a4489128cc61b23c1b18b31690 Mon Sep 17 00:00:00 2001 From: Rose Hogenson Date: Wed, 27 Dec 2023 08:40:32 -0800 Subject: Fix a bug in how unicode is printed. Technically a single character can be split across multiple chunks, so we can just join all the chunks before printing. It's not the most efficient, but this is only for debugging. --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main.rs') diff --git a/src/main.rs b/src/main.rs index bb3797d..10d7647 100644 --- a/src/main.rs +++ b/src/main.rs @@ -29,7 +29,7 @@ fn main() { println!("Usage: edit "); std::process::exit(1); } - if let Err(err) = edit(&args[0]) { + if let Err(err) = edit(&args[1]) { println!("FAIL: {}", err); std::process::exit(1); } -- cgit v1.3.1