mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-07-19 23:51:25 +00:00
fix: restore terminalTitle variable removed in previous edit
This commit is contained in:
committed by
Mitchell Hashimoto
parent
62c1d50757
commit
c4766dff77
@@ -143,11 +143,12 @@ struct TerminalCommandPaletteView: View {
|
||||
let displayColor = color != TerminalTabColor.none ? color : nil
|
||||
|
||||
return controller.surfaceTree.map { surface in
|
||||
let terminalTitle = surface.title.isEmpty ? window.title : surface.title
|
||||
let displayTitle: String
|
||||
if let override = controller.titleOverride, !override.isEmpty {
|
||||
displayTitle = override
|
||||
} else if !terminalTitle.isEmpty {
|
||||
displayTitle = surface.title.isEmpty ? window.title : surface.title
|
||||
displayTitle = terminalTitle
|
||||
} else {
|
||||
displayTitle = "Untitled"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user