summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <montel@kde.org>2016-08-26 11:43:22 (GMT)
committerMontel Laurent <montel@kde.org>2016-08-26 11:43:22 (GMT)
commit5668c06c060ba59274c55d93ff54ca39b77fd265 (patch)
treec212264b4784a0c39a93941c3e4440c86745f6d2
parent717e316c8da211e9b117d5c0e968ec4c1fc73425 (diff)
Don't autocorrect quoted line
-rw-r--r--messagecomposer/src/composer-ng/richtextcomposerng.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/messagecomposer/src/composer-ng/richtextcomposerng.cpp b/messagecomposer/src/composer-ng/richtextcomposerng.cpp
index 3244535..55b43d4 100644
--- a/messagecomposer/src/composer-ng/richtextcomposerng.cpp
+++ b/messagecomposer/src/composer-ng/richtextcomposerng.cpp
@@ -378,7 +378,11 @@ void RichTextComposerNg::forceAutoCorrection()
QTextCursor cur = textCursor();
cur.movePosition(QTextCursor::Start);
while(!cur.atEnd()) {
- cur.movePosition(QTextCursor::NextWord);
+ if(isLineQuoted(cur.block().text())) {
+ cur.movePosition(QTextCursor::NextBlock);
+ } else {
+ cur.movePosition(QTextCursor::NextWord);
+ }
int cursortPosition = cur.position();
d->autoCorrection->autocorrect(richText, *document(), cursortPosition);
}