From 62161410a0a5a88ba79c469a47c586394bb85f3b Mon Sep 17 00:00:00 2001
From: Ziusudra <ziusudra@gmail.com>
Date: Sun, 16 Dec 2012 16:01:50 -0700
Subject: [PATCH 8/9] Fixed a bit of code duplication
---
src/apps/terminal/TermView.cpp | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/src/apps/terminal/TermView.cpp b/src/apps/terminal/TermView.cpp
index e087546..c71b160 100644
a
|
b
|
TermView::AttachedToWindow()
|
1324 | 1324 | // update the terminal size because it may have changed while the TermView |
1325 | 1325 | // was detached from the window. On such conditions FrameResized was not |
1326 | 1326 | // called when the resize occured |
1327 | | int rows; |
1328 | | int columns; |
1329 | | GetTermSizeFromRect(Bounds(), &rows, &columns); |
1330 | | SetTermSize(rows, columns); |
| 1327 | SetTermSize(Bounds()); |
1331 | 1328 | MakeFocus(true); |
1332 | 1329 | if (fScrollBar) { |
1333 | 1330 | fScrollBar->SetSteps(fFontHeight, fFontHeight * fRows); |