From 35db28b423714e0275173fd8e1ced26b9699d4bb Mon Sep 17 00:00:00 2001 From: Spencer Gouw Date: Fri, 14 Apr 2023 15:28:30 -0700 Subject: [PATCH] fix: changed !== to === EnabledNoWS... --- main.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.ts b/main.ts index 8e0fd3d..dd4d81a 100644 --- a/main.ts +++ b/main.ts @@ -200,7 +200,7 @@ export default class JellySnippets extends Plugin { let abovelineEnd = editor.getLine(aboveline).length; let peekPos: EditorPosition = { line: aboveline, ch: abovelineEnd }; 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 // yes, you need to recalculate the above line's end else it will use an incorrect position let aboveLine = editor.getCursor().line - 1;