corrected handling of newline in layout_string()
This commit is contained in:
parent
be1476d107
commit
915f395b5a
3 changed files with 40 additions and 19 deletions
|
|
@ -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":
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue