From 2f518f737769b9e8fd97651d4bbc64d89b4b4865 Mon Sep 17 00:00:00 2001 From: hut Date: Sun, 10 Feb 2013 00:10:46 +0100 Subject: 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. --- ranger/gui/widgets/browsercolumn.py | 1 + 1 file changed, 1 insertion(+) 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: -- cgit 1.4.1-2-gfad0