Skip to content

Commit

Permalink
fix: open local docs if they exist (#1262)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielrainer authored Aug 7, 2024
1 parent 91e6d45 commit ad80a09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -700,7 +700,7 @@ export function openDocs(ctx: Ctx): Cmd {
if (doclink) {
if (doclink.local) {
const exist = existsSync(Uri.parse(doclink.local).fsPath);
if (!exist) {
if (exist) {
await nvim.call('coc#ui#open_url', doclink.local);
return;
}
Expand Down

0 comments on commit ad80a09

Please sign in to comment.