diff --git a/src/apps/terminal/TermView.h b/src/apps/terminal/TermView.h index a6a4d0e89f..698bbd42b8 100644 --- a/src/apps/terminal/TermView.h +++ b/src/apps/terminal/TermView.h @@ -30,8 +30,9 @@ class TermBuffer; class TermView : public BView { public: - TermView(BRect frame, int32 argc, const char **argv, int32 historySize = 1000); - TermView(int rows, int columns, int32 argc, const char **argv, int32 historySize = 1000); + TermView(BRect frame, int32 argc, const char **argv, int32 historySize); + TermView(int rows, int columns, int32 argc, const char **argv, + int32 historySize); TermView(BMessage *archive); ~TermView(); diff --git a/src/apps/terminal/TermWindow.cpp b/src/apps/terminal/TermWindow.cpp index 65de38b6c1..2ba74f2d9f 100644 --- a/src/apps/terminal/TermWindow.cpp +++ b/src/apps/terminal/TermWindow.cpp @@ -687,10 +687,11 @@ TermWindow::_AddTab(Arguments *args) // Note: I don't pass the Arguments class directly to the termview, // only to avoid adding it as a dependency: in other words, to keep // the TermView class as agnostic as possible about the surrounding world. - CustomTermView *view = - new CustomTermView(PrefHandler::Default()->getInt32(PREF_ROWS), - PrefHandler::Default()->getInt32(PREF_COLS), - argc, (const char **)argv); + CustomTermView *view = new CustomTermView( + PrefHandler::Default()->getInt32(PREF_ROWS), + PrefHandler::Default()->getInt32(PREF_COLS), + argc, (const char **)argv, + PrefHandler::Default()->getInt32(PREF_HISTORY_SIZE)); TermViewContainerView *containerView = new TermViewContainerView(view); BScrollView *scrollView = new TermScrollView("scrollView",