From f25e3d527820489cf83c80d7e497da6ee0a75da3 Mon Sep 17 00:00:00 2001 From: Ned Deily Date: Tue, 26 Jul 2011 18:17:33 -0700 Subject: 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. --- Lib/idlelib/IOBinding.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Lib/idlelib/IOBinding.py') diff --git a/Lib/idlelib/IOBinding.py b/Lib/idlelib/IOBinding.py index 3f5d556bb67..d20c708ef9c 100644 --- a/Lib/idlelib/IOBinding.py +++ b/Lib/idlelib/IOBinding.py @@ -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 -- cgit v1.2.3