[gnome-shell] history: Fix navigation when entering a repeat



commit bafd9c777ade647b2e31f3265ed8970f39f1843c
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]