From f40034e69f4cfabeaa03cfe844821f115835386f Mon Sep 17 00:00:00 2001 From: Matt Wilson Date: Tue, 18 Jun 2002 20:44:58 +0000 Subject: always move the cursor to the top -- even if we can't see it --- htmlbuffer.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'htmlbuffer.py') diff --git a/htmlbuffer.py b/htmlbuffer.py index 5685b7716..31a8aaa80 100644 --- a/htmlbuffer.py +++ b/htmlbuffer.py @@ -81,6 +81,8 @@ class HTMLBuffer(HTMLParser.HTMLParser): self.offsets = {} def get_buffer(self): + iter = self.buffer.get_iter_at_offset(0) + self.buffer.place_cursor(iter) return self.buffer def pushTag(self, tag, offset): -- cgit