hrev53704 adds 1 changeset to branch 'master'
old head: 388c78edd906f45ed419d39e3635469b7928bd84
new head: 1324becd21b3a9e1b759535917e5db2693615494
overview:
https://git.haiku-os.org/haiku/log/?qt=range&q=1324becd21b3+%5E388c78edd906
----------------------------------------------------------------------------
1324becd21b3: 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 <waddlesplash@xxxxxxxxx>
[ Zotyamester <szatmary.zoltan1222@xxxxxxxxx> ]
----------------------------------------------------------------------------
Revision: hrev53704
Commit: 1324becd21b3a9e1b759535917e5db2693615494
URL: https://git.haiku-os.org/haiku/commit/?id=1324becd21b3
Author: Zotyamester <szatmary.zoltan1222@xxxxxxxxx>
Date: Sat Jan 11 18:44:27 2020 UTC
Committer: waddlesplash <waddlesplash@xxxxxxxxx>
Commit-Date: Sat Jan 11 18:25:09 2020 UTC
Ticket: https://dev.haiku-os.org/ticket/13453
----------------------------------------------------------------------------
1 file changed, 4 insertions(+)
src/apps/terminal/TermView.cpp | 4 ++++
----------------------------------------------------------------------------
diff --git a/src/apps/terminal/TermView.cpp b/src/apps/terminal/TermView.cpp
index 22f3c81830..f9c2263b30 100644
--- a/src/apps/terminal/TermView.cpp
+++ b/src/apps/terminal/TermView.cpp
@@ -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;