diff options
author | hut <hut@lavabit.com> | 2013-02-10 00:10:46 +0100 |
---|---|---|
committer | hut <hut@lavabit.com> | 2013-02-10 00:10:46 +0100 |
commit | 2f518f737769b9e8fd97651d4bbc64d89b4b4865 (patch) | |
tree | a820e127dad2501d8a5527ac945662ec62191a95 | |
parent | fdb5224dc3272ffefb8d57dd07388740752515db (diff) | |
download | ranger-2f518f737769b9e8fd97651d4bbc64d89b4b4865.tar.gz |
widgets.browsercolumn: fix display of non-tagged filenames
When you see a non-tagged file in a column other than the main column and its name is shortened because it doesn't fit into the column, it would have 1 less character of space available. The reason is that since it has no tag, a simulated tag with the content " " is added before the name so it appears to be 1 character longer than files with tags. This commit fixes that.
-rw-r--r-- | ranger/gui/widgets/browsercolumn.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ranger/gui/widgets/browsercolumn.py b/ranger/gui/widgets/browsercolumn.py index fcf09845..3324d9a8 100644 --- a/ranger/gui/widgets/browsercolumn.py +++ b/ranger/gui/widgets/browsercolumn.py @@ -313,6 +313,7 @@ class BrowserColumn(Pager): display_data.append([tagged_marker, tag_attr]) else: text = " " + text + space += 1 wtext = WideString(text) if len(wtext) > space: |