From db334533d0773fbe78020e65e6cb1840b3faf1d4 Mon Sep 17 00:00:00 2001 From: jaanonim Date: Tue, 5 Nov 2024 16:18:23 +0100 Subject: [PATCH] fix >@ bug --- src/EditorSuggester.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/EditorSuggester.ts b/src/EditorSuggester.ts index cc13355..187bbed 100644 --- a/src/EditorSuggester.ts +++ b/src/EditorSuggester.ts @@ -43,7 +43,7 @@ export class EditorSuggester extends EditorSuggest { if (link_pos < 0 && embed_pos < 0) return null; const isLink = link_pos >= 0 && - (cursor.ch - link_pos > cursor.ch - embed_pos || embed_pos < 0); + (cursor.ch - link_pos < cursor.ch - embed_pos || embed_pos < 0); const pos = isLink ? link_pos : embed_pos; const currentContent = currentLine.substring(pos + 1, cursor.ch).trim();