Skip to content

Commit

Permalink
Prevent typed text from being inserted after link
Browse files Browse the repository at this point in the history
  • Loading branch information
roman-r-m committed Jan 23, 2021
1 parent 1ec2053 commit 575b77e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/QuickLinksPlugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ module.exports = {
hint: async (cm, data, completion) => {
const from = completion.from || data.from;
from.ch -= 2;
cm.replaceRange(`[${note.title}](:/${note.id})`, from, completion.to || data.to, "complete");
cm.replaceRange(`[${note.title}](:/${note.id})`, from, cm.getCursor(), "complete");
}
});
}
Expand Down

0 comments on commit 575b77e

Please sign in to comment.