parent
bfe5ff5c0b
commit
69eff05223
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue