1
0
Fork 0
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:
Jonah Graham 2017-11-14 22:58:21 +00:00
parent d4bfa4ac43
commit c9c292982d

View file

@ -266,7 +266,9 @@ public class BuildConsolePartitioner
// to avoid document becoming 0 length and therefore the
// listeners assume the document has been cleared
fDocument.replace(length + toTrim, 0, appendContents);
fDocument.replace(0, toTrim, ""); //$NON-NLS-1$
if (toTrim > 0) {
fDocument.replace(0, toTrim, ""); //$NON-NLS-1$
}
} catch (BadLocationException e) {
fDocument.set(update.getNewContents());
}