history: Fix navigation when entering a repeat

If the user typed "a", hit up, and pressed enter again, we wouldn't re-set the
history pointer to the end, so the broken navigation would instead go to the
entry before that.

https://bugzilla.gnome.org/show_bug.cgi?id=648765
This commit is contained in:
Jasper St. Pierre 2011-04-27 09:51:53 -04:00 committed by Owen W. Taylor
parent 70ab08aefd
commit fc70446050

View File

@ -77,9 +77,9 @@ HistoryManager.prototype = {
this._history[this._history.length - 1] != input) {
this._history.push(input);
this._historyIndex = this._history.length;
this._save();
}
this._historyIndex = this._history.length;
},
_onEntryKeyPress: function(entry, event) {