Skip to content

Commit

Permalink
Fix \r display
Browse files Browse the repository at this point in the history
  • Loading branch information
dhurum committed Nov 25, 2015
1 parent 002aceb commit e6ef770
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/file_backward_reader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ wchar_t BackwardReader::get(size_t _column, size_t _row) const {
return L' ';
}

if (lines[row][column] == '\n') {
if ((lines[row][column] == '\n') || (lines[row][column] == '\r')) {
return L' ';
}

Expand Down
2 changes: 1 addition & 1 deletion src/file_forward_reader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ wchar_t ForwardReader::get(size_t _column, size_t _row) const {
return L' ';
}

if (lines[row][column] == '\n') {
if ((lines[row][column] == '\n') || (lines[row][column] == '\r')) {
return L' ';
}

Expand Down

0 comments on commit e6ef770

Please sign in to comment.