hgext/mq.py
changeset 12689 c52c629ce19e
parent 12682 58a3e2608ae4
child 12755 db79d3627872
--- a/hgext/mq.py	Thu Oct 07 23:34:21 2010 -0500
+++ b/hgext/mq.py	Sun Oct 10 10:06:36 2010 -0500
@@ -1437,7 +1437,7 @@
                 ph = patchheader(self.join(patchname), self.plainmode)
                 msg = ph.message and ph.message[0] or ''
                 if self.ui.formatted():
-                    width = util.termwidth() - len(pfx) - len(patchname) - 2
+                    width = self.ui.termwidth() - len(pfx) - len(patchname) - 2
                     if width > 0:
                         msg = util.ellipsis(msg, width)
                     else: