diff --git a/Sources/Prompt/PanelView.swift b/Sources/Prompt/PanelView.swift index 5c69b47..06297cd 100644 --- a/Sources/Prompt/PanelView.swift +++ b/Sources/Prompt/PanelView.swift @@ -354,7 +354,11 @@ struct PanelView: View { ForEach(store.sections.filter { $0.id != store.sectionID(of: item.id) }) { section in Button(section.name) { store.move(ids: ids, to: section.id) - if multiple { clearSelection() } + // Moved items leave the current view, so they must + // leave the selection too — otherwise they stay + // selected, invisible, in the target workspace. + selection.subtract(ids) + lastSelectedID = nil } } }