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

Skip to content

Commit 12aa1ae

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.
2 parents 7496fef + f25e3d5 commit 12aa1ae

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
@@ -237,6 +237,9 @@ Core and Builtins
237237
Library
238238
-------
239239

240+
- Issue #12590: IDLE editor window now always displays the first line
241+
when opening a long file. With Tk 8.5, the first line was hidden.
242+
240243
- Issue #12576: Fix urlopen behavior on sites which do not send (or obfuscates)
241244
Connection:close header.
242245

0 commit comments

Comments
 (0)