1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

os: make get_raw_line() should not break lines on \r on windows (fix #5900) (#15205)

This commit is contained in:
Andrew Compton 2022-07-25 00:03:07 -05:00 committed by GitHub
parent 6a5db0df61
commit f9385f6300
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -510,7 +510,7 @@ pub fn get_raw_line() string {
if !res || bytes_read == 0 {
break
}
if *pos == `\n` || *pos == `\r` {
if *pos == `\n` {
offset++
break
}