Show More
@@ -1010,6 +1010,13 b' class curseschunkselector(object):' | |||||
1010 | def _getstatuslinesegments(self): |
|
1010 | def _getstatuslinesegments(self): | |
1011 | """-> [str]. return segments""" |
|
1011 | """-> [str]. return segments""" | |
1012 | selected = self.currentselecteditem.applied |
|
1012 | selected = self.currentselecteditem.applied | |
|
1013 | spaceselect = _('space: select') | |||
|
1014 | spacedeselect = _('space: deselect') | |||
|
1015 | # Format the selected label into a place as long as the longer of the | |||
|
1016 | # two possible labels. This may vary by language. | |||
|
1017 | spacelen = max(len(spaceselect), len(spacedeselect)) | |||
|
1018 | selectedlabel = '%-*s' % (spacelen, | |||
|
1019 | spacedeselect if selected else spaceselect) | |||
1013 | segments = [ |
|
1020 | segments = [ | |
1014 | _headermessages[self.operation], |
|
1021 | _headermessages[self.operation], | |
1015 | '-', |
|
1022 | '-', | |
@@ -1017,7 +1024,7 b' class curseschunkselector(object):' | |||||
1017 | _('c: confirm'), |
|
1024 | _('c: confirm'), | |
1018 | _('q: abort'), |
|
1025 | _('q: abort'), | |
1019 | _('arrow keys: move/expand/collapse'), |
|
1026 | _('arrow keys: move/expand/collapse'), | |
1020 | _('space: deselect') if selected else _('space: select'), |
|
1027 | selectedlabel, | |
1021 | _('?: help'), |
|
1028 | _('?: help'), | |
1022 | ] |
|
1029 | ] | |
1023 | return segments |
|
1030 | return segments |
General Comments 0
You need to be logged in to leave comments.
Login now