fix crlf file reading

This commit is contained in:
Maxime Coste 2012-11-26 13:36:43 +01:00
parent 84db1e2b8c
commit 52ee8b46ae

View File

@ -119,7 +119,7 @@ Buffer* create_buffer_from_file(const String& filename)
lines.emplace_back(pos, line_end + 1);
lines.back().back() = '\n';
if (line_end+1 != end and *line_end == '\r' and *line_end+1 == '\n')
if (line_end+1 != end and *line_end == '\r' and *(line_end+1) == '\n')
{
crlf = true;
pos = line_end + 2;