Merge pull request #4359 from yt2b/check_bom

Add BOM check
This commit is contained in:
Jeong YunWon
2022-12-26 16:03:51 +09:00
committed by GitHub

View File

@@ -236,6 +236,10 @@ where
lxr.window.slide();
lxr.window.slide();
lxr.window.slide();
// TODO: Handle possible mismatch between BOM and explicit encoding declaration.
if let Some('\u{feff}') = lxr.window[0] {
lxr.window.slide();
}
// Start at top row (=1) left column (=1)
lxr.location.reset();
lxr