Преглед изворни кода

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);
       }
     });
   }