mercurial/cmdutil.py
changeset 12689 c52c629ce19e
parent 12619 7178f6fedb9d
child 12774 642afc8f50e7
--- a/mercurial/cmdutil.py	Thu Oct 07 23:34:21 2010 -0500
+++ b/mercurial/cmdutil.py	Sun Oct 10 10:06:36 2010 -0500
@@ -706,7 +706,7 @@
         diffopts = diffopts.copy(context=0)
         width = 80
         if not ui.plain():
-            width = util.termwidth()
+            width = ui.termwidth()
         chunks = patch.diff(repo, node1, node2, match, changes, diffopts,
                             prefix=prefix)
         for chunk, label in patch.diffstatui(util.iterlines(chunks),