From d672cbcb3eaef39222fd3902b8ffcb80a21f48f1 Mon Sep 17 00:00:00 2001 From: hut Date: Thu, 17 Dec 2009 19:55:46 +0100 Subject: fixed history (fast_forward worked reversed) --- ranger/container/history.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ranger/container/history.py b/ranger/container/history.py index 355c7c72..80fe8b4a 100644 --- a/ranger/container/history.py +++ b/ranger/container/history.py @@ -29,7 +29,7 @@ class History(object): def top(self): try: - return self.history_forward[0] + return self.history_forward[-1] except IndexError: try: return self.history[-1] @@ -44,7 +44,7 @@ class History(object): def back(self): if len(self.history) > 1: - self.history_forward.append( self.history.pop() ) + self.history_forward.appendleft( self.history.pop() ) return self.current() def move(self, n): @@ -61,7 +61,7 @@ class History(object): def forward(self): if len(self.history_forward) > 0: - self.history.append( self.history_forward.pop() ) + self.history.append( self.history_forward.popleft() ) return self.current() def fast_forward(self): -- cgit 1.4.1-2-gfad0 h tests → More comprehensible and rewrite-friendly software → More resilient society.Kartik K. Agaram <vc@akkartik.com>
about summary refs log tree commit diff stats
path: root/cpp/.traces/convert_names_passes_dummy
blob: 4587e3e02caffc974bdeb3b8138b6f02796cb215 (plain) (blame)
1
2
3
4
5
6
7
8
9