Commit 80b01c98 authored by Guido van Rossum's avatar Guido van Rossum

Always insert at 'end'

parent 0a614649
......@@ -111,14 +111,14 @@ class EditableManPage(ScrolledText):
self.lineno = self.lineno + 1
def insert_prop(self, str, prop = ' '):
here = self.index(AtInsert())
self.insert(AtInsert(), str[0])
here = self.index('end')
self.insert('end', str[0])
tags = self.tag_names(here)
for tag in tags:
self.tag_remove(tag, here)
if prop != ' ':
self.tag_add(prop, here)
self.insert(AtInsert(), str[1:])
self.insert('end', str[1:])
# Readonly Man Page class -- disables editing, otherwise the same
class ReadonlyManPage(EditableManPage):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment