Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f25e3d5

Browse files
committed
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.
1 parent 1299a8f commit f25e3d5

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

Lib/idlelib/IOBinding.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ def loadfile(self, filename):
232232
# before being able to execute the code
233233
self.set_saved(False)
234234
self.text.mark_set("insert", "1.0")
235-
self.text.see("insert")
235+
self.text.yview("insert")
236236
self.updaterecentfileslist(filename)
237237
return True
238238

Misc/NEWS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ Core and Builtins
3737
Library
3838
-------
3939

40+
- Issue #12590: IDLE editor window now always displays the first line
41+
when opening a long file. With Tk 8.5, the first line was hidden.
42+
4043
- Issue #12576: Fix urlopen behavior on sites which do not send (or obfuscates)
4144
Connection:close header.
4245

0 commit comments

Comments
 (0)