Merge pull request #274 from zonble/master

Fixes a minor bug on handling backspace key.
This commit is contained in:
Lukhnos Liu 2022-02-02 09:58:38 -08:00 committed by GitHub
commit f1a62e06c7
1 changed files with 1 additions and 1 deletions

View File

@ -720,7 +720,7 @@ static NSString *const kGraphVizOutputfile = @"/tmp/McBopomofo-visualization.dot
_bpmfReadingBuffer->backspace();
}
if (!_builder->length()) {
if (_bpmfReadingBuffer->isEmpty() && !_builder->length()) {
InputStateEmptyIgnoringPreviousState *empty = [[InputStateEmptyIgnoringPreviousState alloc] init];
stateCallback(empty);
} else {