fix: chat input crashing when moving the cursor (#33)

Reviewed-on: #33
This commit was merged in pull request #33.
This commit is contained in:
2026-06-03 13:18:03 +00:00
parent 5d4c8634ef
commit c78e0a5163
42 changed files with 7175 additions and 1593 deletions

View File

@@ -319,14 +319,14 @@ impl MaskPattern {
if fraction == &Some(0) {
int_with_sep
} else {
format!("{int_with_sep}.{frac}")
format!("{}.{}", int_with_sep, frac)
}
} else {
int_with_sep
};
let final_str = if let Some(sign) = maybe_signed {
format!("{sign}{final_str}")
format!("{}{}", sign, final_str)
} else {
final_str
};