From bafd9c777ade647b2e31f3265ed8970f39f1843c Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Wed, 27 Apr 2011 09:51:53 -0400 Subject: [PATCH] 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 --- js/misc/history.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/misc/history.js b/js/misc/history.js index 24d1b514d..fa655cfa0 100644 --- a/js/misc/history.js +++ b/js/misc/history.js @@ -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) {