summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2011-12-19 14:18:48 +0100
committerhut <hut@lavabit.com>2011-12-19 14:18:48 +0100
commitdd7e3aea6df8d3b85dd6ada555198f4a2209c78f (patch)
tree5fa3ffedfb7b8ea1763309f05365afac4b4bd579
parente681682273412e6b26f85bc0dff325f605abb305 (diff)
downloadranger-dd7e3aea6df8d3b85dd6ada555198f4a2209c78f.tar.gz
widgets.titlebar: TODO entry, fix unicode chars in titlebar
-rw-r--r--ranger/gui/widgets/titlebar.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/ranger/gui/widgets/titlebar.py b/ranger/gui/widgets/titlebar.py
index ddb27f2c..2b5e836b 100644
--- a/ranger/gui/widgets/titlebar.py
+++ b/ranger/gui/widgets/titlebar.py
@@ -102,6 +102,7 @@ class TitleBar(Widget):
 		self.result = bar.combine()
 
 	def _get_left_part(self, bar):
+		# TODO: Properly escape non-printable chars without breaking unicode
 		if self.env.username == 'root':
 			clr = 'bad'
 		else:
@@ -124,11 +125,11 @@ class TitleBar(Widget):
 			else:
 				clr = 'directory'
 
-			bar.add(path.safe_basename, clr, directory=path)
+			bar.add(path.basename, clr, directory=path)
 			bar.add('/', clr, fixed=True, directory=path)
 
 		if self.env.cf is not None:
-			bar.add(self.env.cf.safe_basename, 'file')
+			bar.add(self.env.cf.basename, 'file')
 
 	def _get_right_part(self, bar):
 		# TODO: fix that pressed keys are cut off when chaining CTRL keys