corrected handling of newline in layout_string()

This commit is contained in:
Alessandro Mauri 2025-09-16 17:06:19 +02:00
parent be1476d107
commit 915f395b5a
3 changed files with 40 additions and 19 deletions

View file

@ -356,7 +356,7 @@ fn void calculator(ugui::Ctx* ui, TextEdit* te)
case "9":
buffer[len++] = ui.get_keys()[0];
case "\n":
eval = true;
eval = len != 0;
case "c":
len = 0;
case "d":