fix: Prevent displayOutput from clearing state on Infinity/NaN
Co-authored-by: aider (gemini/gemini-2.5-pro) <aider@aider.chat>
This commit is contained in:
@@ -242,12 +242,6 @@ function displayOutput(num) {
|
|||||||
} else {
|
} else {
|
||||||
num = 'NaN';
|
num = 'NaN';
|
||||||
}
|
}
|
||||||
currNumber = null;
|
|
||||||
results = null;
|
|
||||||
isDecimal = false;
|
|
||||||
hasPressedEquals = false;
|
|
||||||
prevNumber = null;
|
|
||||||
operator = null;
|
|
||||||
specials.R.val = 'AC';
|
specials.R.val = 'AC';
|
||||||
if (!swipeEnabled) drawKey('R', specials.R);
|
if (!swipeEnabled) drawKey('R', specials.R);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user