mirror of https://github.com/python/cpython
Fix bug in backup inside esc sequence.
This commit is contained in:
parent
b71f879baf
commit
0b26a19a4f
|
@ -82,6 +82,8 @@ class VT100:
|
||||||
self.fill_top()
|
self.fill_top()
|
||||||
|
|
||||||
def send(self, buffer):
|
def send(self, buffer):
|
||||||
|
self.msg('send: unfinished=%s, buffer=%s',
|
||||||
|
`self.unfinished`, `buffer`)
|
||||||
self.unfinished = self.unfinished + buffer
|
self.unfinished = self.unfinished + buffer
|
||||||
i = 0
|
i = 0
|
||||||
n = len(self.unfinished)
|
n = len(self.unfinished)
|
||||||
|
@ -110,7 +112,7 @@ class VT100:
|
||||||
break
|
break
|
||||||
argstr = argstr + c
|
argstr = argstr + c
|
||||||
else:
|
else:
|
||||||
i = i - len(argstr)
|
i = i - len(argstr) - 2
|
||||||
break
|
break
|
||||||
## self.msg('found ESC [ %s %s' % (`argstr`, `c`))
|
## self.msg('found ESC [ %s %s' % (`argstr`, `c`))
|
||||||
args = string.splitfields(argstr, ';')
|
args = string.splitfields(argstr, ';')
|
||||||
|
|
Loading…
Reference in New Issue