mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-26 18:22:09 +02:00
...
This commit is contained in:
@@ -71,7 +71,7 @@ func read_input(input_file *os.File, input_file_name string, input_channel chan<
|
|||||||
if count_carriage_returns {
|
if count_carriage_returns {
|
||||||
process_chunk = func(chunk []byte) {
|
process_chunk = func(chunk []byte) {
|
||||||
for len(chunk) > 0 {
|
for len(chunk) > 0 {
|
||||||
idx := simdstring.UnsafeIndexByte2(chunk, '\n', '\r')
|
idx := simdstring.IndexByte2(chunk, '\n', '\r')
|
||||||
if idx == -1 {
|
if idx == -1 {
|
||||||
_, _ = output_buf.Write(chunk)
|
_, _ = output_buf.Write(chunk)
|
||||||
chunk = nil
|
chunk = nil
|
||||||
|
|||||||
Reference in New Issue
Block a user