[gnome-shell/gnome-3-0] history: Fix navigation when entering a repeat
- From: Owen Taylor <otaylor src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/gnome-3-0] history: Fix navigation when entering a repeat
- Date: Wed, 25 May 2011 19:58:20 +0000 (UTC)
commit fc704460508b112631739d65cd0dac1f62029fb2
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Wed Apr 27 09:51:53 2011 -0400
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 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/js/misc/history.js b/js/misc/history.js
index 24d1b51..fa655cf 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) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]