forked from qt-creator/qt-creator
Merge remote-tracking branch 'origin/4.4' into 4.5
Change-Id: I9b7cb3d845628abf69a73a279f5a79202c0976c2
This commit is contained in:
@@ -1274,6 +1274,11 @@ void TextEditorWidgetPrivate::editorContentsChange(int position, int charsRemove
|
||||
// lines were inserted or removed from outside, keep viewport on same part of text
|
||||
if (q->firstVisibleBlock().blockNumber() > posBlock.blockNumber())
|
||||
q->verticalScrollBar()->setValue(q->verticalScrollBar()->value() + newBlockCount - m_blockCount);
|
||||
|
||||
if (m_inBlockSelectionMode) {
|
||||
disableBlockSelection(CursorUpdateClearSelection);
|
||||
q->viewport()->update();
|
||||
}
|
||||
}
|
||||
m_blockCount = newBlockCount;
|
||||
m_scrollBarUpdateTimer.start(500);
|
||||
|
||||
Reference in New Issue
Block a user