Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

The position of the history ring resets when newPromptBox() is called.

This fixes the odd history behavior in issue#1:
http://github.com/chrisdone/jquery-console/issues/1
  • Loading branch information...
commit 47dda3ae00042be5b69385f72956153d744b7e4a 1 parent 6c326e8
@spratt spratt authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  jquery.console.js
View
1  jquery.console.js
@@ -152,6 +152,7 @@
function newPromptBox() {
column = 0;
promptText = '';
+ ringn = 0; // Reset the position of the history ring
promptBox = $('<div class="jquery-console-prompt-box"></div>');
var label = $('<span class="jquery-console-prompt-label"></span>');
promptBox.append(label.text(promptLabel).show());
Please sign in to comment.
Something went wrong with that request. Please try again.