Show More
@@ -24,6 +24,7 b' from . import (' | |||||
24 | encoding, |
|
24 | encoding, | |
25 | error, |
|
25 | error, | |
26 | patch as patchmod, |
|
26 | patch as patchmod, | |
|
27 | pycompat, | |||
27 | scmutil, |
|
28 | scmutil, | |
28 | util, |
|
29 | util, | |
29 | ) |
|
30 | ) | |
@@ -1113,7 +1114,7 b' class curseschunkselector(object):' | |||||
1113 | # strip \n, and convert control characters to ^[char] representation |
|
1114 | # strip \n, and convert control characters to ^[char] representation | |
1114 | text = re.sub( |
|
1115 | text = re.sub( | |
1115 | br'[\x00-\x08\x0a-\x1f]', |
|
1116 | br'[\x00-\x08\x0a-\x1f]', | |
1116 | lambda m: b'^' + chr(ord(m.group()) + 64), |
|
1117 | lambda m: b'^' + pycompat.sysbytes(chr(ord(m.group()) + 64)), | |
1117 | text.strip(b'\n'), |
|
1118 | text.strip(b'\n'), | |
1118 | ) |
|
1119 | ) | |
1119 |
|
1120 |
General Comments 0
You need to be logged in to leave comments.
Login now