From 6672a4290bdc7d200e4b78506966d73f9c08e28e Mon Sep 17 00:00:00 2001 From: moculus Date: Wed, 31 Oct 2007 20:01:30 +0000 Subject: [PATCH] more wrapping madness --HG-- branch : pmacs2 --- method.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/method.py b/method.py index 287c8cd..eae956e 100644 --- a/method.py +++ b/method.py @@ -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())