-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix BufferedIO to search with
byteindex
As of #184, the buffer String is no longer BINARY but UTF-8. I missed that the code that search for newlines was using `.index` instead of `.byteindex`, causing the buffer offset to go out of sync.
- Loading branch information
Showing
3 changed files
with
84 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -208,3 +208,6 @@ Style/CaseLikeIf: | |
|
||
Style/EmptyMethod: | ||
Enabled: false | ||
|
||
Style/AccessModifierDeclarations: | ||
Enabled: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters