summary refs log tree commit diff stats
path: root/ranger/gui/widgets/titlebar.py
diff options
context:
space:
mode:
Diffstat (limited to 'ranger/gui/widgets/titlebar.py')
-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 2004163e..9e370b72 100644
--- a/ranger/gui/widgets/titlebar.py
+++ b/ranger/gui/widgets/titlebar.py
@@ -20,8 +20,9 @@ class TitleBar(Widget):
 			self.old_cf = self.env.cf
 			self._calc_bar()
 		self._print_result(self.result)
-		self.color('in_titlebar', 'throbber')
-		self.win.addnstr(self.y, self.wid - 2, self.throbber, 1)
+		if self.wid > 2:
+			self.color('in_titlebar', 'throbber')
+			self.win.addnstr(self.y, self.wid - 2, self.throbber, 1)
 
 	def _calc_bar(self):
 		bar = Bar()