From 7e904aec06c09f7fdef0938155d2b9a19d36e314 Mon Sep 17 00:00:00 2001 From: Agando Date: Sun, 18 Oct 2026 17:19:14 +0200 Subject: newOS4 v4.6.40: review fixes (bug diagnostics, trash tree, dir paste, stale capture, preview) --- modules/ext/course.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'modules/ext/course.js') diff --git a/modules/ext/course.js b/modules/ext/course.js index d3b96de..8c615ec 100644 --- a/modules/ext/course.js +++ b/modules/ext/course.js @@ -177,7 +177,10 @@ class CourseModule { if (cmd === 'course') return; // Only capture while an exercise is actually running. Capturing every command // swallowed all terminal output (pwd/help/version printed nothing). - if (!this._active || !this._active.lesson || !this._active.lesson.exercise) return; + if (!this._active || !this._active.lesson || !this._active.lesson.exercise) { + this._capOut = ''; // never let a previous command's output satisfy an output-check exercise + return; + } if (this._capActive) { try { this.terminal._popPrintCapture(); } catch (e) {} if (this._capOut) { try { this.terminal.print(this._capOut.replace(/\n+$/, '')); } catch (e) {} } -- cgit v1.2.3