From b69be9f419cb963d25f8ead93e68fc4472fbc765 Mon Sep 17 00:00:00 2001 From: Mark Gregory Date: Mon, 19 Oct 2026 12:56:17 +0100 Subject: [PATCH] connection updates --- DBSyn/MainView.swift | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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) }