more wrapping madness

--HG--
branch : pmacs2
This commit is contained in:
moculus 2007-10-31 20:01:30 +00:00
parent 97f8cd0242
commit 6672a4290b
1 changed files with 2 additions and 2 deletions

View File

@ -718,8 +718,8 @@ class WrapParagraph(WrapLine):
lines = [line.strip()]
y2 += 1
while y2 < len(w.buffer.lines):
line = w.buffer.lines[y2]
while y2 + 1 < len(w.buffer.lines):
line = w.buffer.lines[y2 + 1]
if self.empty_re.match(line):
break
lines.append(line.strip())