summary refs log tree commit diff stats
diff options
context:
space:
mode:
authornfnty <git@nfnty.se>2015-10-26 01:00:16 +0100
committernfnty <git@nfnty.se>2015-10-28 04:31:07 +0100
commit8414941b0a490312936799cf4679e6daf417b910 (patch)
treed0252451922f24eb0dac97ae0771956022452122
parentede5bf0f3f325e1df64f09c5b387d750d216a4a3 (diff)
downloadranger-8414941b0a490312936799cf4679e6daf417b910.tar.gz
Fix TitleBar ellipsis AttributeError
-rw-r--r--ranger/gui/widgets/titlebar.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/ranger/gui/widgets/titlebar.py b/ranger/gui/widgets/titlebar.py
index dbd08981..644db25e 100644
--- a/ranger/gui/widgets/titlebar.py
+++ b/ranger/gui/widgets/titlebar.py
@@ -1,3 +1,4 @@
+# -*- coding: utf-8 -*-
 # This file is part of ranger, the console file manager.
 # License: GNU GPL version 3, see the file "AUTHORS" for details.
 
@@ -19,6 +20,7 @@ class TitleBar(Widget):
     throbber = ' '
     need_redraw = False
     tab_width = 0
+    ellipsis = { False: '~', True: '…' }
 
     def __init__(self, *args, **keywords):
         Widget.__init__(self, *args, **keywords)
n128' href='#n128'>128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215