From e6ef77013d8cfe6d75762be663e2bd4988861e15 Mon Sep 17 00:00:00 2001 From: Denis Tikhomirov Date: Wed, 25 Nov 2015 19:48:29 +0300 Subject: [PATCH] Fix \r display --- src/file_backward_reader.cpp | 2 +- src/file_forward_reader.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/file_backward_reader.cpp b/src/file_backward_reader.cpp index 3590fca..7bc7f3e 100644 --- a/src/file_backward_reader.cpp +++ b/src/file_backward_reader.cpp @@ -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' '; } diff --git a/src/file_forward_reader.cpp b/src/file_forward_reader.cpp index 51942bf..d54a723 100644 --- a/src/file_forward_reader.cpp +++ b/src/file_forward_reader.cpp @@ -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' '; }