diff options
Diffstat (limited to 'src/ui/widgets/PlainTextEditorPage.cpp')
-rw-r--r-- | src/ui/widgets/PlainTextEditorPage.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ui/widgets/PlainTextEditorPage.cpp b/src/ui/widgets/PlainTextEditorPage.cpp index 1a99c2a6..6fe8977e 100644 --- a/src/ui/widgets/PlainTextEditorPage.cpp +++ b/src/ui/widgets/PlainTextEditorPage.cpp @@ -59,7 +59,8 @@ PlainTextEditorPage::PlainTextEditorPage(QString filePath, QWidget* parent) auto text = ui->textPage->document()->toPlainText(); auto str = boost::format(_("%1% character(s)")) % text.size(); this->ui->characterLabel->setText(str.str().c_str()); - + + detect_cr_lf(text); detect_encoding(text.toStdString()); }); |