Terminal: don't resize if it has no effect
Potentially fixes #13453. Change-Id: Ic5cf15f5040d0557e27dceacab1d6ff9d6d08b8d Reviewed-on: https://review.haiku-os.org/c/haiku/+/2100 Reviewed-by: waddlesplash <[email protected]>
This commit is contained in:
committed by
waddlesplash
parent
388c78edd9
commit
1324becd21
@@ -580,6 +580,10 @@ TermView::Columns() const
|
||||
BRect
|
||||
TermView::SetTermSize(int rows, int columns, bool notifyShell)
|
||||
{
|
||||
// if nothing changed, don't do anything
|
||||
if (rows == fRows && columns == fColumns)
|
||||
return BRect(0, 0, fColumns * fFontWidth, fRows * fFontHeight);
|
||||
|
||||
//debug_printf("TermView::SetTermSize(%d, %d)\n", rows, columns);
|
||||
if (rows > 0)
|
||||
fRows = rows;
|
||||
|
||||
Reference in New Issue
Block a user