From 6e18bb52bcf50e53c1d130a17d0143d671b64ab0 Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Wed, 7 Jan 2026 16:57:14 +0800 Subject: Fix Windows path display in jv info command --- src/bin/jv.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/bin/jv.rs b/src/bin/jv.rs index ae71432..097b804 100644 --- a/src/bin/jv.rs +++ b/src/bin/jv.rs @@ -2229,9 +2229,12 @@ async fn jv_info(args: InfoArgs) { }; let vfid = mapping.mapping_vfid(); + let query_file_path_string = + format_path_str(query_file_path.display().to_string()).unwrap_or_default(); + // Render initial location { - println!("{}", query_file_path.display().to_string()); + println!("{}", query_file_path_string); } // Render reference sheet location, use ID if not found @@ -2243,7 +2246,6 @@ async fn jv_info(args: InfoArgs) { }; // Offset string - let query_file_path_string = query_file_path.display().to_string(); let offset_string = " ".repeat(display_width( if let Some(last_slash) = query_file_path_string.rfind('/') { &query_file_path_string[..last_slash] -- cgit