summaryrefslogtreecommitdiffstats
path: root/framework/src
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2017-09-13 12:11:34 +0200
committerChristian Mollekopf <chrigi_1@fastmail.fm>2017-09-13 12:11:34 +0200
commit21c11df4af4de9c0502cc659394f01df808453e4 (patch)
tree37b6fbfb2bbddf488c7fdd3ab9d9a0e4d4fdaa90 /framework/src
parent2307a07f6483d64e50b0203b1948f42e6fab86dc (diff)
downloadkube-21c11df4af4de9c0502cc659394f01df808453e4.tar.gz
kube-21c11df4af4de9c0502cc659394f01df808453e4.zip
Fixed space after changing formatting
Diffstat (limited to 'framework/src')
-rw-r--r--framework/src/domain/documenthandler.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/framework/src/domain/documenthandler.cpp b/framework/src/domain/documenthandler.cpp
index d9a17e34..b4ddc24c 100644
--- a/framework/src/domain/documenthandler.cpp
+++ b/framework/src/domain/documenthandler.cpp
@@ -299,6 +299,8 @@ void DocumentHandler::contentsChange(int position, int charsRemoved, int charsAd
299 QTextCursor cursor = textCursor(); 299 QTextCursor cursor = textCursor();
300 cursor.setPosition(position + charsAdded, QTextCursor::KeepAnchor); 300 cursor.setPosition(position + charsAdded, QTextCursor::KeepAnchor);
301 cursor.mergeCharFormat(*m_cachedTextFormat); 301 cursor.mergeCharFormat(*m_cachedTextFormat);
302 //This is somehow necessary, otherwise space can break in the editor.
303 cursor.setPosition(position + charsAdded, QTextCursor::MoveAnchor);
302 } 304 }
303 m_cachedTextFormat = {}; 305 m_cachedTextFormat = {};
304 } 306 }