mirror of
https://github.com/SK8-ENGINE/skate-3-rust-engine.git
synced 2026-10-26 19:47:44 +00:00
Keep mod diagnostic truncation valid UTF-8
This commit is contained in:
1 parent
c098a60d87
commit
72152f4b50
1 file changed
+3
-2
@@ -332,8 +332,9 @@ fn draw(
|
||||
if let Some((key, value)) = &menu.editing {
|
||||
description += &format!("\nEditing {key}: {value}_");
|
||||
}
|
||||
if description.chars().count()>650 {
|
||||
description=description.chars().take(650).collect::<String>()+"…\nFull errors are in the session log.";
|
||||
if description.chars().count() > 650 {
|
||||
description = description.chars().take(650).collect::<String>()
|
||||
+ "...\nFull errors are in the session log.";
|
||||
}
|
||||
***detail = description;
|
||||
}
|
||||
Reference in new issue
Block a user