Remove trailing whitespace

This commit is contained in:
Troels Thomsen
2024-02-15 23:38:32 +01:00
parent 8b8cbcbfc9
commit 41e94cf0be

View File

@ -254,10 +254,10 @@ class TerminalController: NSWindowController, NSWindowDelegate,
// Center the window to start, we'll move the window frame automatically // Center the window to start, we'll move the window frame automatically
// when cascading. // when cascading.
window.center() window.center()
// Set the background color of the window // Set the background color of the window
window.backgroundColor = NSColor(ghostty.config.backgroundColor) window.backgroundColor = NSColor(ghostty.config.backgroundColor)
// Handle titlebar tabs config option. Something about what we do while setting up the // Handle titlebar tabs config option. Something about what we do while setting up the
// titlebar tabs interferes with the window restore process unless window.tabbingMode // titlebar tabs interferes with the window restore process unless window.tabbingMode
// is set to .preferred, so we set it, and switch back to automatic as soon as we can. // is set to .preferred, so we set it, and switch back to automatic as soon as we can.
@ -269,7 +269,7 @@ class TerminalController: NSWindowController, NSWindowDelegate,
window.tabbingMode = .automatic window.tabbingMode = .automatic
} }
} }
// Set a custom background on the titlebar - this is required for when // Set a custom background on the titlebar - this is required for when
// titlebar tabs is used in conjunction with a transparent background. // titlebar tabs is used in conjunction with a transparent background.
window.setTitlebarBackground( window.setTitlebarBackground(
@ -278,7 +278,7 @@ class TerminalController: NSWindowController, NSWindowDelegate,
.withAlphaComponent(ghostty.config.backgroundOpacity) .withAlphaComponent(ghostty.config.backgroundOpacity)
.cgColor .cgColor
) )
// Initialize our content view to the SwiftUI root // Initialize our content view to the SwiftUI root
window.contentView = NSHostingView(rootView: TerminalView( window.contentView = NSHostingView(rootView: TerminalView(
ghostty: self.ghostty, ghostty: self.ghostty,