mq: toggle truncating using ui.plain() rather than ui.interactive()

This enables truncated messages when using `qseries' with the `pager'
extension.
This commit is contained in:
Dan Villiom Podlaski Christiansen 2010-04-15 14:06:07 +02:00
parent 7137f04bb0
commit a911d6d8e4

View File

@ -1430,7 +1430,7 @@ class queue(object):
if summary:
ph = patchheader(self.join(patchname), self.plainmode)
msg = ph.message and ph.message[0] or ''
if self.ui.interactive():
if not self.ui.plain():
width = util.termwidth() - len(pfx) - len(patchname) - 2
if width > 0:
msg = util.ellipsis(msg, width)