mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-23 06:32:10 +02:00
Bug 519533: Fix scroll lock on build console
Change-Id: Ib7826de6ed26dbd05f2568d097deb52cf3dc4768
This commit is contained in:
parent
d4bfa4ac43
commit
c9c292982d
1 changed files with 3 additions and 1 deletions
|
@ -266,7 +266,9 @@ public class BuildConsolePartitioner
|
||||||
// to avoid document becoming 0 length and therefore the
|
// to avoid document becoming 0 length and therefore the
|
||||||
// listeners assume the document has been cleared
|
// listeners assume the document has been cleared
|
||||||
fDocument.replace(length + toTrim, 0, appendContents);
|
fDocument.replace(length + toTrim, 0, appendContents);
|
||||||
|
if (toTrim > 0) {
|
||||||
fDocument.replace(0, toTrim, ""); //$NON-NLS-1$
|
fDocument.replace(0, toTrim, ""); //$NON-NLS-1$
|
||||||
|
}
|
||||||
} catch (BadLocationException e) {
|
} catch (BadLocationException e) {
|
||||||
fDocument.set(update.getNewContents());
|
fDocument.set(update.getNewContents());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue