Skip to content

Commit

Permalink
fix >@ bug
Browse files Browse the repository at this point in the history
  • Loading branch information
jaanonim committed Nov 5, 2024
1 parent f79ab8f commit db33453
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/EditorSuggester.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export class EditorSuggester extends EditorSuggest<VerseLink> {
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();

Expand Down

0 comments on commit db33453

Please sign in to comment.