about summary refs log tree commit diff stats
path: root/ranger
diff options
context:
space:
mode:
authorWojciech Siewierski <wojciech.siewierski@onet.pl>2019-10-01 21:45:11 +0200
committerWojciech Siewierski <wojciech.siewierski@onet.pl>2019-10-01 21:48:26 +0200
commit83b464312d02beb49743fa45ccd5380ebcdd02f9 (patch)
tree9567aef7af7851a9e15f3bb5001ddb0e4af898c3 /ranger
parentbb2b2e887b1cba76a0b55a0fef99f28ddd39ea95 (diff)
downloadranger-83b464312d02beb49743fa45ccd5380ebcdd02f9.tar.gz
gui.widgets.statusbar: Truncate the VCS commit message
Fixes #1704.
Diffstat (limited to 'ranger')
-rw-r--r--ranger/gui/widgets/statusbar.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ranger/gui/widgets/statusbar.py b/ranger/gui/widgets/statusbar.py
index 71064ed4..c735b8f8 100644
--- a/ranger/gui/widgets/statusbar.py
+++ b/ranger/gui/widgets/statusbar.py
@@ -212,7 +212,7 @@ class StatusBar(Widget):  # pylint: disable=too-many-instance-attributes
                 left.add_space()
                 left.add(directory.vcs.rootvcs.head['date'].strftime(self.timeformat), 'vcsdate')
                 left.add_space()
-                left.add(directory.vcs.rootvcs.head['summary'], 'vcscommit')
+                left.add(directory.vcs.rootvcs.head['summary'][:70], 'vcscommit')
 
     def _get_owner(self, target):
         uid = target.stat.st_uid