changeset 24351:cdc4f3af2497

crecord: use colwidth instead of ucolwidth
author Matt Mackall <mpm@selenic.com>
date Wed, 18 Mar 2015 13:38:06 -0500
parents 7002ad149f30
children d6dbe4d1c9bc
files mercurial/crecord.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/crecord.py	Wed Mar 18 13:37:18 2015 -0500
+++ b/mercurial/crecord.py	Wed Mar 18 13:38:06 2015 -0500
@@ -872,7 +872,7 @@
         width = self.xscreensize
         # turn tabs into spaces
         instr = instr.expandtabs(4)
-        strwidth = encoding.ucolwidth(instr)
+        strwidth = encoding.colwidth(instr)
         numspaces = (width - ((strwidth + xstart) % width) - 1)
         return instr + " " * numspaces + "\n"