summaryrefslogtreecommitdiff
path: root/plugingui
diff options
context:
space:
mode:
Diffstat (limited to 'plugingui')
-rw-r--r--plugingui/textedit.cc11
1 files changed, 11 insertions, 0 deletions
diff --git a/plugingui/textedit.cc b/plugingui/textedit.cc
index aee8e13..b7603a1 100644
--- a/plugingui/textedit.cc
+++ b/plugingui/textedit.cc
@@ -99,6 +99,17 @@ void TextEdit::preprocessText()
}
}
+ { // Handle "\r"
+ for(size_t i = 0; i < text.length(); ++i)
+ {
+ char ch = text.at(i);
+ if(ch == '\r')
+ {
+ text.erase(i, 1);
+ }
+ }
+ }
+
std::list<std::string> lines;
{ // Handle new line characters
size_t pos = 0;