diff options
Diffstat (limited to 'ranger/gui/widgets/browsercolumn.py')
-rw-r--r-- | ranger/gui/widgets/browsercolumn.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ranger/gui/widgets/browsercolumn.py b/ranger/gui/widgets/browsercolumn.py index e0d6bd7f..453ad5a8 100644 --- a/ranger/gui/widgets/browsercolumn.py +++ b/ranger/gui/widgets/browsercolumn.py @@ -301,7 +301,7 @@ class BrowserColumn(Pager): wtext = WideString(text) if len(wtext) > space: - wtext = wtext[:space - 1] + ellipsis + wtext = wtext[:max(0, space - 1)] + ellipsis text = str(wtext) display_data.append([text, attr]) |