diff --git a/DBSyn/MainView.swift b/DBSyn/MainView.swift index dabea58..d48a07c 100644 --- a/DBSyn/MainView.swift +++ b/DBSyn/MainView.swift @@ -1775,8 +1775,7 @@ struct SQLTextView: NSViewRepresentable { .padding(.vertical, 4) .background(index == 0 ? Color.accentColor.opacity(0.16) : Color.clear) .contentShape(Rectangle()) - .onTapGesture { [weak self, weak editor] in - guard let self, let editor else { return } + .onTapGesture { self.selectedSuggestion = index self.acceptSuggestion(editor) }