فهرست منبع

Fix ability to run cells in console

Steven Silvester 8 سال پیش
والد
کامیت
493fa5197a
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      src/console/content.ts

+ 2 - 2
src/console/content.ts

@@ -318,7 +318,7 @@ class ConsoleContent extends Widget {
     if (force) {
       // Create a new prompt before kernel execution to allow typeahead.
       this.newPrompt();
-      return this._execute(this.prompt);
+      return this._execute(prompt);
     }
 
     // Check whether we should execute.
@@ -326,7 +326,7 @@ class ConsoleContent extends Widget {
       if (value) {
         // Create a new prompt before kernel execution to allow typeahead.
         this.newPrompt();
-        return this._execute(this.prompt);
+        return this._execute(prompt);
       }
     });
   }