about summary refs log tree commit diff stats
path: root/ranger/gui/widgets/process_manager.py
diff options
context:
space:
mode:
Diffstat (limited to 'ranger/gui/widgets/process_manager.py')
-rw-r--r--ranger/gui/widgets/process_manager.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/ranger/gui/widgets/process_manager.py b/ranger/gui/widgets/process_manager.py
index f0954a9e..08f390b5 100644
--- a/ranger/gui/widgets/process_manager.py
+++ b/ranger/gui/widgets/process_manager.py
@@ -47,8 +47,8 @@ class ProcessManager(Widget, Accumulator):
 		if self.hei <= 0:
 			return
 
-		self.win.addnstr(self.y, self.x, "Process Manager", self.wid)
-		self.color_at(self.y, self.x, self.wid, base_clr, 'title')
+		self.addstr(0, 0, "Process Manager")
+		self.color_at(0, 0, self.wid, base_clr, 'title')
 
 		if lst:
 			for i in range(self.hei - 1):
@@ -57,21 +57,21 @@ class ProcessManager(Widget, Accumulator):
 					obj = lst[i]
 				except IndexError:
 					break
-				y, x = self.y + i + 1, self.x
+
+				y = i + 1
 				clr = deque(base_clr)
 
 				if self.pointer == i:
 					clr.append('selected')
 
 				descr = obj.get_description()
-				self.win.addnstr(y, x, descr, self.wid)
-				self.color_at(y, x, self.wid, clr)
+				self.addstr(y, 0, descr, self.wid)
+				self.color_at(y, 0, self.wid, clr)
 
 		else:
 			if self.hei > 1:
-				self.win.addnstr(self.y + 1, self.x,\
-						"No processes running", self.wid)
-				self.color_at(self.y + 1, self.x, self.wid, base_clr, 'error')
+				self.addstr(1, 0, "No processes running")
+				self.color_at(1, 0, self.wid, base_clr, 'error')
 
 		self.color_reset()
 
ests/macros/tbugs.nim?h=devel&id=fd4e6299057b0ce59a89553e7c32a9ea62da14db'>fd4e62990 ^
f16449ec2 ^












39ce17a73 ^


fd4e62990 ^
39ce17a73 ^








d80d8aa74 ^








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