repline: Sync with old repline

This commit is contained in:
2025-08-07 02:43:23 -04:00
parent d1df62533e
commit 760cf725f2
9 changed files with 316 additions and 180 deletions

View File

@@ -39,7 +39,7 @@ pub mod chars {
if cont & 0xc0 != 0x80 {
return None;
}
out = out << 6 | (cont & 0x3f);
out = (out << 6) | (cont & 0x3f);
}
Some(char::from_u32(out).ok_or(BadUnicode(out)))
}