aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.rs
diff options
context:
space:
mode:
authorRose Hogenson <rosehogenson@posteo.net>2023-12-27 08:40:32 -0800
committerRose Hogenson <rosehogenson@posteo.net>2023-12-27 08:40:32 -0800
commit82913ff77a7fc8a4489128cc61b23c1b18b31690 (patch)
tree744aac2693b7856685d842fb563a0c804be141f5 /src/main.rs
parent9f6447adb277ac7ea6332600d56b98666189168e (diff)
downloadeditor-82913ff77a7fc8a4489128cc61b23c1b18b31690.tar.zst
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.
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs2
1 files changed, 1 insertions, 1 deletions
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 <filename>");
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);
}