From 1eb0ab68c29e32895fc2c1b06db682e1485fa00b Mon Sep 17 00:00:00 2001
From: Michael Scharf <Michael.Scharf@windriver.com>
Date: Tue, 10 Apr 2007 22:31:08 +0000
Subject: [PATCH] [174313] Terminal View leaves empty, unscrolled space in the
 Terminal Widget

---
 .../tm/internal/terminal/control/impl/TerminalText.java   | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/org.eclipse.tm.terminal/src/org/eclipse/tm/internal/terminal/control/impl/TerminalText.java b/org.eclipse.tm.terminal/src/org/eclipse/tm/internal/terminal/control/impl/TerminalText.java
index c203964af67..096ab67d9eb 100644
--- a/org.eclipse.tm.terminal/src/org/eclipse/tm/internal/terminal/control/impl/TerminalText.java
+++ b/org.eclipse.tm.terminal/src/org/eclipse/tm/internal/terminal/control/impl/TerminalText.java
@@ -1799,7 +1799,6 @@ public class TerminalText implements Runnable, ControlListener {
 
 			Point textLocation = text.getLocation();
 			textLocation.y += verticalPixelsToShrink;
-			textLocation.x += horizontalPixelsToShrink;
 			text.setLocation(textLocation);
 
 			// Restore this class instance as the ControlListener on the StyledText
@@ -1807,13 +1806,6 @@ public class TerminalText implements Runnable, ControlListener {
 
 			text.addControlListener(this);
 
-			// Make sure the exposed portion of the Composite canvas behind the
-			// StyledText control matches the background color of the StyledText
-			// control.
-
-			Color textBackground = text.getBackground();
-			text.getParent().setBackground(textBackground);
-
 			// Scroll the StyledText widget to the bottommost position.
 
 			text.setSelectionRange(text.getCharCount(), 0);