/*
* Change the minimum size for the window associated with the context.
- * If termIdx is not negative, use it as the terminal index (that is useful
- * if self->terminal has not been set yet). Otherwise, [self terminalIndex]
- * will be used as the index.
+ * termIdx is the index for the terminal: pass it so this function can be
+ * used when self->terminal has not yet been set.
*/
- (void)setMinimumWindowSize:(int)termIdx;
* and rows since they could be changed */
NSRect contentRect = [self->primaryWindow contentRectForFrameRect: [self->primaryWindow frame]];
- [self setMinimumWindowSize:-1];
+ [self setMinimumWindowSize:[self terminalIndex]];
NSSize size = self->primaryWindow.contentMinSize;
BOOL windowNeedsResizing = NO;
if (contentRect.size.width < size.width) {
{
NSSize minsize;
- if (termIdx < 0) {
- termIdx = [self terminalIndex];
- }
if (termIdx == 0) {
minsize.width = 80;
minsize.height = 24;