]> 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:17:33 +0000 (18:17 -0700)
committerNed Deily <nad@acm.org>
Wed, 27 Jul 2011 01:17:33 +0000 (18:17 -0700)
when opening a long file.  With Tk 8.5, the first line was hidden.

Lib/idlelib/IOBinding.py
Misc/NEWS

index 3f5d556bb677cfc38bdf6b3095b240e6c03efef6..d20c708ef9c814c5d0b80e200f4396cf4fa254c3 100644 (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
 
index 2d6d3158dcc140b3aba789c9bc7ec6496335ffc5..ed8511dea923cd2cd495ef0825897835b84f161f 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -37,6 +37,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 #12576: Fix urlopen behavior on sites which do not send (or obfuscates)
   Connection:close header.