mirror of
https://github.com/rabirabirara/obsidian-jelly-snippets.git
synced 2026-07-22 07:30:22 +00:00
doc: add comment for return undefined
This commit is contained in:
parent
998489b576
commit
66ba56328c
1 changed files with 2 additions and 0 deletions
2
main.ts
2
main.ts
|
|
@ -254,6 +254,7 @@ export default class JellySnippets extends Plugin {
|
|||
}
|
||||
} else {
|
||||
// YesWS
|
||||
// * Only do these if the rhs has no complex cursor end.
|
||||
let curpos = editor.getCursor();
|
||||
if (snippetType === SnippetType.MLSR) {
|
||||
// RCNN - insert newline ("repeat enter") / replace curpos with newline
|
||||
|
|
@ -328,6 +329,7 @@ export default class JellySnippets extends Plugin {
|
|||
this.unselect(editor, curpos);
|
||||
}
|
||||
|
||||
// No replace - return undefined
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue