fix bug i think

--HG--
branch : pmacs2
This commit is contained in:
moculus 2009-03-22 04:01:45 +00:00
parent e867f46c16
commit a767ede0c5
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,7 @@ class Context(object):
if delta == 0: if delta == 0:
return return
elif delta > 0: elif delta > 0:
self.namelines.extend([None] * delta) self.namelines.extend([(None, None)] * delta)
for i in reversed(range(p.y + 1, len(self.mode.window.buffer.lines))): for i in reversed(range(p.y + 1, len(self.mode.window.buffer.lines))):
self.namelines[i] = self.namelines[i - delta] self.namelines[i] = self.namelines[i - delta]
for i in range(p.y, p.y + delta): for i in range(p.y, p.y + delta):