summaryrefslogtreecommitdiff
path: root/ttystatus/pathname.py
diff options
context:
space:
mode:
Diffstat (limited to 'ttystatus/pathname.py')
-rw-r--r--ttystatus/pathname.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/ttystatus/pathname.py b/ttystatus/pathname.py
index bf5fe5a..0fbdbd7 100644
--- a/ttystatus/pathname.py
+++ b/ttystatus/pathname.py
@@ -31,8 +31,8 @@ class Pathname(ttystatus.Widget):
self._key = key
self.pathname = ''
- def render(self, render):
- return self.pathname
+ def render(self, width):
+ return self.pathname[-width:]
def update(self, master):
self.pathname = master.get(self._key, '')