From 21c51e705e943b4282624b6a23a325ef5cbdaffa Mon Sep 17 00:00:00 2001 From: The Flying Rapist Date: Wed, 29 Aug 2018 20:26:59 -0400 Subject: Applies Tilde Setting to Window Title --- ranger/gui/ui.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ranger/gui/ui.py b/ranger/gui/ui.py index 4f76dfab..f357e29d 100644 --- a/ranger/gui/ui.py +++ b/ranger/gui/ui.py @@ -365,7 +365,7 @@ class UI( # pylint: disable=too-many-instance-attributes,too-many-public-method DisplayableContainer.draw(self) if self._draw_title and self.settings.update_title: cwd = self.fm.thisdir.path - if cwd.startswith(self.fm.home_path): + if self.settings.tilde_in_titlebar and cwd.startswith(self.fm.home_path): cwd = '~' + cwd[len(self.fm.home_path):] if self.settings.shorten_title: split = cwd.rsplit(os.sep, self.settings.shorten_title) -- cgit 1.4.1-2-gfad0