##// END OF EJS Templates
crecord: use colwidth instead of ucolwidth
Matt Mackall -
r24351:cdc4f3af default
parent child Browse files
Show More
@@ -872,7 +872,7 b' class curseschunkselector(object):'
872 width = self.xscreensize
872 width = self.xscreensize
873 # turn tabs into spaces
873 # turn tabs into spaces
874 instr = instr.expandtabs(4)
874 instr = instr.expandtabs(4)
875 strwidth = encoding.ucolwidth(instr)
875 strwidth = encoding.colwidth(instr)
876 numspaces = (width - ((strwidth + xstart) % width) - 1)
876 numspaces = (width - ((strwidth + xstart) % width) - 1)
877 return instr + " " * numspaces + "\n"
877 return instr + " " * numspaces + "\n"
878
878
General Comments 0
You need to be logged in to leave comments. Login now