mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 15:27:13 +03:00
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:
parent
7137f04bb0
commit
a911d6d8e4
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user