summary refs log tree commit diff stats
path: root/ranger
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2013-02-10 00:10:46 +0100
committerhut <hut@lavabit.com>2013-02-10 00:10:46 +0100
commit2f518f737769b9e8fd97651d4bbc64d89b4b4865 (patch)
treea820e127dad2501d8a5527ac945662ec62191a95 /ranger
parentfdb5224dc3272ffefb8d57dd07388740752515db (diff)
downloadranger-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.
Diffstat (limited to 'ranger')
-rw-r--r--ranger/gui/widgets/browsercolumn.py1
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: