Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion CodeEdit/Features/Tabs/TabGroup/TabGroupData.swift
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,10 @@ final class TabGroupData: ObservableObject, Identifiable {
/// This will also write any changes to the file on disk and will add the tab to the tab history.
/// - Parameter item: the tab to close.
func closeTab(item: Tab) {
if temporaryTab == item {
temporaryTab = nil
}

historyOffset = 0
if item != selected {
history.prepend(item)
Expand Down Expand Up @@ -200,7 +204,6 @@ final class TabGroupData: ObservableObject, Identifiable {
)
item.fileDocument = codeFile
CodeEditDocumentController.shared.addDocument(codeFile)
print("Opening file for item: ", item.url)
}

func goBackInHistory() {
Expand Down