branch : pmacs2
This commit is contained in:
moculus 2007-08-21 13:07:39 +00:00
parent bfe5ff5c0b
commit 69eff05223
1 changed files with 4 additions and 1 deletions

View File

@ -298,6 +298,9 @@ class PythonDictCleanup(method.Method):
# remove the old text and add the new # remove the old text and add the new
start_p = Point(0, start) start_p = Point(0, start)
end_p = Point(0, end + 1) if end + 1 < len(w.buffer.lines):
end_p = Point(0, end + 1)
else:
end_p = Point(len(w.buffer.lines[-1]), len(w.buffer.lines) - 1)
w.kill(start_p, end_p) w.kill(start_p, end_p)
w.insert_string(start_p, data) w.insert_string(start_p, data)