From bcc5edbe24ede619ca7f185f5525e77a95f2a330 Mon Sep 17 00:00:00 2001 From: Felix Zeller Date: Sun, 21 Apr 2024 13:38:45 -0400 Subject: [PATCH] fix: extra bracket in wikilink completions --- src/completion/link_completer.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/completion/link_completer.rs b/src/completion/link_completer.rs index cb955ba7..31e13870 100644 --- a/src/completion/link_completer.rs +++ b/src/completion/link_completer.rs @@ -356,7 +356,7 @@ impl<'a> LinkCompleter<'a> for WikiLinkCompleter<'a> { }, end: Position { line: self.line, - character: (self.chars_in_line - 1).min(self.character + 2_u32), + character: (self.chars_in_line).min(self.character + 2_u32), }, }, new_text: format!(