mirror of
https://github.com/rabirabirara/obsidian-jelly-snippets.git
synced 2026-07-22 07:30:22 +00:00
fix: changed !== to === EnabledNoWS...
This commit is contained in:
parent
d6d97d39b1
commit
35db28b423
1 changed files with 1 additions and 1 deletions
2
main.ts
2
main.ts
|
|
@ -200,7 +200,7 @@ export default class JellySnippets extends Plugin {
|
||||||
let abovelineEnd = editor.getLine(aboveline).length;
|
let abovelineEnd = editor.getLine(aboveline).length;
|
||||||
let peekPos: EditorPosition = { line: aboveline, ch: abovelineEnd };
|
let peekPos: EditorPosition = { line: aboveline, ch: abovelineEnd };
|
||||||
if (this.triggerSearchSnippet(editor, peekPos)) {
|
if (this.triggerSearchSnippet(editor, peekPos)) {
|
||||||
if (this.settings.triggerOnEnter !== AutoTriggerOptions.EnabledNoWS) {
|
if (this.settings.triggerOnEnter === AutoTriggerOptions.EnabledNoWS) {
|
||||||
// undo the already created newline by deleting everything from curpos to above line's end
|
// undo the already created newline by deleting everything from curpos to above line's end
|
||||||
// yes, you need to recalculate the above line's end else it will use an incorrect position
|
// yes, you need to recalculate the above line's end else it will use an incorrect position
|
||||||
let aboveLine = editor.getCursor().line - 1;
|
let aboveLine = editor.getCursor().line - 1;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue