summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorWojciech Siewierski <wojciech.siewierski@onet.pl>2018-08-31 22:30:59 +0200
committerGitHub <noreply@github.com>2018-08-31 22:30:59 +0200
commita34b0ae846a1388b9fada761b06436e058b2d6a4 (patch)
tree83b5af3f9d4e86c87fe20b9c579ce43a67e79cb2
parentdbc1ebfd0065576585910730a3f8319297f4dfd7 (diff)
parent21c51e705e943b4282624b6a23a325ef5cbdaffa (diff)
downloadranger-a34b0ae846a1388b9fada761b06436e058b2d6a4.tar.gz
Merge pull request #1291 from NoSuck/tilde_setting_window_title
Applies Tilde Setting to Window Title
-rw-r--r--ranger/gui/ui.py2
1 files changed, 1 insertions, 1 deletions
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)