mirror of
https://github.com/ArthurSonzogni/FTXUI.git
synced 2025-10-01 17:29:07 +08:00
Add coverage for terminal_input_parser.
This commit is contained in:
@@ -136,12 +136,11 @@ TerminalInputParser::Output TerminalInputParser::ParseUTF8() {
|
||||
unsigned int first_zero = 8; // NOLINT
|
||||
for (unsigned int i = 0; i < 8; ++i) { // NOLINT
|
||||
mask |= selector;
|
||||
if (head & selector) {
|
||||
selector >>= 1U;
|
||||
continue;
|
||||
if (!(head & selector)) {
|
||||
first_zero = i;
|
||||
break;
|
||||
}
|
||||
first_zero = i;
|
||||
break;
|
||||
selector >>= 1U;
|
||||
}
|
||||
|
||||
// Accumulate the value of the first byte.
|
||||
|
Reference in New Issue
Block a user