summary refs log tree commit diff stats
path: root/ranger
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2010-01-05 02:21:21 +0100
committerhut <hut@lavabit.com>2010-01-05 02:21:21 +0100
commit7e3e8d14402833295ab83ff1591ecbe46867518b (patch)
tree3927317eb021834ca62afad506d055ea6c301129 /ranger
parent7b4ef308589cad675908f3cdea64c3c0edffd92a (diff)
downloadranger-7e3e8d14402833295ab83ff1591ecbe46867518b.tar.gz
pager: added narg for move_horizontal
Diffstat (limited to 'ranger')
-rw-r--r--ranger/gui/widgets/pager.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/ranger/gui/widgets/pager.py b/ranger/gui/widgets/pager.py
index 5e9ef3c8..48492573 100644
--- a/ranger/gui/widgets/pager.py
+++ b/ranger/gui/widgets/pager.py
@@ -90,7 +90,13 @@ class Pager(Widget):
 
 		self.scroll_begin = i
 	
-	def move_horizontal(self, relative=0, absolute=None):
+	def move_horizontal(self, relative=0, absolute=None, narg=None):
+		if narg is not None:
+			if absolute is None:
+				relative = relative < 0 and -narg or narg
+			else:
+				absolute = narg
+
 		self.startx = move_between(
 				current=self.startx,
 				minimum=0,
t tweaks' href='/gbmor/getwtxt/commit/assets/style.css?h=v0.5.0&id=d15180e9dcd540d5850fa0319a7614620075eaea'>d15180e ^
920306c ^






d15180e ^


920306c ^


0f645e7 ^

920306c ^


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