Skip to content

Commit

Permalink
Input wasn't flushed upon successful evaluation in syntax mode. Fixed.
Browse files Browse the repository at this point in the history
  • Loading branch information
bard committed Sep 25, 2008
1 parent 4a0f2a2 commit a8f9d1e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions chrome/content/repl.js
Expand Up @@ -572,6 +572,7 @@ interactors.javascript.handleInput = function(input) {
if(result != undefined)
this.print(represent(result));
this._prompt();
this._inputBuffer = '';
} catch(e if e.name == 'SyntaxError') {
// ignore and keep filling the buffer
this._prompt(this._name.replace(/./g, '.') + '> ');
Expand Down

0 comments on commit a8f9d1e

Please sign in to comment.