]> granicus.if.org Git - python/commitdiff
Issue #12590: IDLE editor window now always displays the first line
authorNed Deily <nad@acm.org>
Wed, 27 Jul 2011 01:16:08 +0000 (18:16 -0700)
committerNed Deily <nad@acm.org>
Wed, 27 Jul 2011 01:16:08 +0000 (18:16 -0700)
when opening a long file.  With Tk 8.5, the first line was hidden.

Lib/idlelib/IOBinding.py
Misc/NEWS

index a8c351fa8c633ce3f66f493ab3de551bcdf4ea8b..c515432ddc613f857904e05c89ad76dbd3600037 100644 (file)
@@ -266,7 +266,7 @@ class IOBinding:
         self.reset_undo()
         self.set_filename(filename)
         self.text.mark_set("insert", "1.0")
-        self.text.see("insert")
+        self.text.yview("insert")
         self.updaterecentfileslist(filename)
         return True
 
index 6e7bc535f60d4335a1400c2cbeb99afd336ca646..d2d0f89df1965ea13925fb94f694d20c9dbfff3c 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -277,6 +277,9 @@ Core and Builtins
 Library
 -------
 
+- 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.
+
 - Issue #12161: Cause StringIO.getvalue() to raise a ValueError when used on a
   closed StringIO instance.