Skip to content

Commit

Permalink
improves the ui when the term has a really small width
Browse files Browse the repository at this point in the history
  • Loading branch information
20015jjw committed Mar 26, 2015
1 parent 9ebf4bf commit 753864d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion NEMbox/ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def build_menu(self, datatype, title, datalist, offset, index, step):
self.screen.addstr(i - offset + 8, 0, ' ' * self.startcol)
self.screen.addstr(i - offset + 8, self.indented_startcol,
str('-> ' + str(i) + '. ' + datalist[i]['song_name'] + self.space + datalist[i][
'artist'] + ' < ' + datalist[i]['album_name'] + ' >')[:int(self.x*1.5)],
'artist'] + ' < ' + datalist[i]['album_name'] + ' >')[:int(self.x*2)],
curses.color_pair(2))
else:
self.screen.addstr(i - offset + 8, 0, ' ' * self.startcol)
Expand Down

0 comments on commit 753864d

Please sign in to comment.