Skip to content

Commit

Permalink
fix: extra bracket in wikilink completions
Browse files Browse the repository at this point in the history
  • Loading branch information
Feel-ix-343 committed Apr 21, 2024
1 parent f5d1223 commit bcc5edb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/completion/link_completer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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!(
Expand Down

0 comments on commit bcc5edb

Please sign in to comment.