From 6bb109513fccaf5de4b623308e9aafc85898adaf Mon Sep 17 00:00:00 2001 From: almenon Date: Sun, 17 Nov 2024 15:59:52 -0800 Subject: [PATCH] fix --- src/toAREPLLogic.ts | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/toAREPLLogic.ts b/src/toAREPLLogic.ts index a974b4a..8a2ed2f 100644 --- a/src/toAREPLLogic.ts +++ b/src/toAREPLLogic.ts @@ -41,7 +41,6 @@ export class ToAREPLLogic{ return } }); - const endSection = codeLines.slice(endLineNum).join(eol) codeLines = codeLines.slice(startLineNum, endLineNum) const unsafeKeywords = settingsCached.get('unsafeKeywords') @@ -59,14 +58,12 @@ export class ToAREPLLogic{ default_filter_types: settingsCached.get('defaultFilterTypes') } - // user should be able to rerun code without changing anything - // only scenario where we dont re-run is if just end section is changed - if(endSection != this.lastEndSection && data.evalCode == this.lastCodeSection){ + if(data.evalCode == this.lastCodeSection){ + // nothing changed, no point in rerunning return false } this.lastCodeSection = data.evalCode - this.lastEndSection = endSection this.PythonExecutor.execCode(data)