Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save carlosdagos/2327b909a385da87f3516918b8b5723e to your computer and use it in GitHub Desktop.
Save carlosdagos/2327b909a385da87f3516918b8b5723e to your computer and use it in GitHub Desktop.
diff --git a/sources/PseudoTerminal.m b/sources/PseudoTerminal.m
index f6868f3..f703404 100644
--- a/sources/PseudoTerminal.m
+++ b/sources/PseudoTerminal.m
@@ -354,7 +354,6 @@ static NSString* TERMINAL_ARRANGEMENT_HIDING_TOOLBELT_SHOULD_RESIZE_WINDOW = @"H
default:
return (mask |
- NSTitledWindowMask |
NSClosableWindowMask |
NSMiniaturizableWindowMask |
NSResizableWindowMask |
@@ -689,7 +688,7 @@ static NSString* TERMINAL_ARRANGEMENT_HIDING_TOOLBELT_SHOULD_RESIZE_WINDOW = @"H
// This allows the window to enter Lion fullscreen.
[[self window] setCollectionBehavior:[[self window] collectionBehavior] | NSWindowCollectionBehaviorFullScreenPrimary];
break;
-
+
case iTermHotkeyWindowTypeRegular:
case iTermHotkeyWindowTypeFloatingPanel:
case iTermHotkeyWindowTypeFloatingWindow:
@@ -1851,7 +1850,7 @@ ITERM_WEAKLY_REFERENCEABLE
// Do not have a hotkey defined for this profile
return NO;
}
-
+
return YES;
}
@@ -2017,7 +2016,7 @@ ITERM_WEAKLY_REFERENCEABLE
if ([aTab isTmuxTab]) {
NSSize tabSize = [aTab tmuxSize];
DLog(@"tab %@ size is %@", aTab, NSStringFromSize(tabSize));
-
+
tmuxSize.width = (int) MIN(tmuxSize.width, tabSize.width);
tmuxSize.height = (int) MIN(tmuxSize.height, tabSize.height);
}
@@ -2412,7 +2411,7 @@ ITERM_WEAKLY_REFERENCEABLE
}
[[self retain] autorelease];
-
+
// This releases the last reference to self except for autorelease pools.
[[iTermController sharedInstance] terminalWillClose:self];
@@ -2792,7 +2791,7 @@ ITERM_WEAKLY_REFERENCEABLE
if (![siblings containsObject:newMainWindowController]) {
[[iTermHotKeyController sharedInstance] autoHideHotKeyWindows:siblings];
}
-
+
// update the cursor
[[[self currentSession] textview] refresh];
[[[self currentSession] textview] setNeedsDisplay:YES];
@@ -4151,7 +4150,7 @@ ITERM_WEAKLY_REFERENCEABLE
if (wasDraggedFromAnotherWindow_) {
wasDraggedFromAnotherWindow_ = NO;
[firstTab setReportIdealSizeAsCurrent:NO];
-
+
// fitWindowToTabs will detect the window changed sizes and do a bogus move of it in this case.
if (windowType_ == WINDOW_TYPE_NORMAL ||
windowType_ == WINDOW_TYPE_NO_TITLE_BAR) {
@@ -4337,7 +4336,7 @@ ITERM_WEAKLY_REFERENCEABLE
[theTab numberOfSessionsDidChange];
[self saveTmuxWindowOrigins];
-
+
if (tabToRemove) {
[self.tabView removeTabViewItem:tabToRemove.tabViewItem];
}
@@ -5422,7 +5421,7 @@ ITERM_WEAKLY_REFERENCEABLE
case WINDOW_TYPE_RIGHT_PARTIAL:
frame.origin.x = self.screen.visibleFrameIgnoringHiddenDock.origin.x + self.screen.visibleFrameIgnoringHiddenDock.size.width - frame.size.width;
break;
-
+
case WINDOW_TYPE_NORMAL:
case WINDOW_TYPE_TRADITIONAL_FULL_SCREEN:
case WINDOW_TYPE_LION_FULL_SCREEN:
diff --git a/sources/iTermTextDrawingHelper.h b/sources/iTermTextDrawingHelper.h
index b1aaad6..f4f2fb8 100644
--- a/sources/iTermTextDrawingHelper.h
+++ b/sources/iTermTextDrawingHelper.h
@@ -13,10 +13,10 @@
#import "VT100GridTypes.h"
// Number of pixels margin on left and right edge.
-#define MARGIN 5
+#define MARGIN 25
// Number of pixels margin on the top.
-#define VMARGIN 2
+#define VMARGIN 25
@class iTermColorMap;
@class iTermFindOnPageHelper;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment