Skip to content

Commit 7cd0657

Browse files
committed
[app] crash a lot less, but be a lot slower… bleh
1 parent 1d836d0 commit 7cd0657

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

NewTerm/Controllers/TerminalController.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,11 +122,11 @@ extension TerminalController {
122122
}
123123

124124
// TODO: we should handle the scrollback separately so it only appears if the user scrolls
125-
updateQueue.async {
125+
DispatchQueue.main.async {
126126
let attributedString = self.stringSupplier.attributedString()!
127127
let backgroundColor = self.stringSupplier.colorMap!.background!
128128

129-
DispatchQueue.main.async {
129+
// DispatchQueue.main.async {
130130
self.delegate?.refresh(attributedString: attributedString, backgroundColor: backgroundColor)
131131

132132
// self.secondaryUpdateQueue.async {
@@ -136,7 +136,7 @@ extension TerminalController {
136136
// self.delegate?.refresh(attributedString: attributedString, backgroundColor: backgroundColor)
137137
// }
138138
// }
139-
}
139+
// }
140140
}
141141
}
142142

0 commit comments

Comments
 (0)