summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--ranger/core/actions.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/ranger/core/actions.py b/ranger/core/actions.py
index 877c300e..e2dfd837 100644
--- a/ranger/core/actions.py
+++ b/ranger/core/actions.py
@@ -439,8 +439,9 @@ class Actions(EnvironmentAware, SettingsAware):
 		if name is None:
 			name = self.current_tab
 		if name == self.current_tab:
+			direction = -1 if name == self._get_tab_list()[-1] else 1
 			previous = self.current_tab
-			self.tab_move(1)
+			self.tab_move(direction)
 			if previous == self.current_tab:
 				return  # can't close last tab
 		if name in self.tabs:
e previous revision' href='/akkartik/mu/blame/html/apps/tui.mu.html?h=hlt&id=a0430d580719fc0fbe1fe0c92de2ec412245762c'>^
ec73ed12 ^
68df24fa ^










39234e89 ^
68df24fa ^
ec73ed12 ^



68df24fa ^
9cbd4199 ^
68df24fa ^

9cbd4199 ^

9f9aad34 ^



1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96