summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--ranger/gui/ui.py6
-rw-r--r--ranger/gui/widgets/browsercolumn.py7
2 files changed, 13 insertions, 0 deletions
diff --git a/ranger/gui/ui.py b/ranger/gui/ui.py
index 1d47157c..78dab9de 100644
--- a/ranger/gui/ui.py
+++ b/ranger/gui/ui.py
@@ -330,10 +330,16 @@ class UI(DisplayableContainer):
 
 	def open_embedded_pager(self):
 		self.browser.open_pager()
+		for column in self.browser.columns:
+			if column == self.browser.main_column:
+				break
+			column.level_shift(amount=1)
 		return self.browser.pager
 
 	def close_embedded_pager(self):
 		self.browser.close_pager()
+		for column in self.browser.columns:
+			column.level_restore()
 
 	def open_console(self, string='', prompt=None, position=None):
 		if self.console.open(string, prompt=prompt, position=position):
diff --git a/ranger/gui/widgets/browsercolumn.py b/ranger/gui/widgets/browsercolumn.py
index a5579c15..fcf09845 100644
--- a/ranger/gui/widgets/browsercolumn.py
+++ b/ranger/gui/widgets/browsercolumn.py
@@ -35,6 +35,7 @@ class BrowserColumn(Pager):
 		Pager.__init__(self, win)
 		Widget.__init__(self, win)
 		self.level = level
+		self.original_level = level
 
 		self.settings.signal_bind('setopt.display_size_in_main_column',
 				self.request_redraw, weak=True)
@@ -119,6 +120,12 @@ class BrowserColumn(Pager):
 
 		return True
 
+	def level_shift(self, amount):
+		self.level = self.original_level + amount
+
+	def level_restore(self):
+		self.level = self.original_level
+
 	def poke(self):
 		Widget.poke(self)
 		self.target = self.fm.thistab.at_level(self.level)
th 4 spaces in all python files' href='/akspecs/ranger/commit/setup.py?h=v1.7.0-emacs&id=d1a1173ddc315f21a3d468f43ac55aa43d31883d'>d1a1173d ^
b3660b9a ^
d1a1173d ^
3b96a37f ^




4feb2e15 ^
3b96a37f ^


3b96a37f ^
8a5944e1 ^

3cd8a402 ^


d1a1173d ^








d1a1173d ^
e6b847b3 ^
225aa78f ^
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