Issue #12590: IDLE editor window now always displays the first line

when opening a long file.  With Tk 8.5, the first line was hidden.
This commit is contained in:
Ned Deily 2011-07-26 18:17:33 -07:00
parent 1299a8f3b2
commit f25e3d5278
2 changed files with 4 additions and 1 deletions

View file

@ -232,7 +232,7 @@ class IOBinding:
# before being able to execute the code
self.set_saved(False)
self.text.mark_set("insert", "1.0")
self.text.see("insert")
self.text.yview("insert")
self.updaterecentfileslist(filename)
return True