From: Roger Serwy Date: Sun, 5 May 2013 16:34:21 +0000 (-0500) Subject: #17798: Allow IDLE to edit new files when specified on command line. X-Git-Tag: v3.3.2~29 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5b1ab247510d4f4fc566b62e8928646ebe276d49;p=thirdparty%2FPython%2Fcpython.git #17798: Allow IDLE to edit new files when specified on command line. --- diff --git a/Lib/idlelib/EditorWindow.py b/Lib/idlelib/EditorWindow.py index 343b6e423049..19bbdd60f9be 100644 --- a/Lib/idlelib/EditorWindow.py +++ b/Lib/idlelib/EditorWindow.py @@ -321,6 +321,8 @@ class EditorWindow(object): per.insertfilter(color) else: io.set_filename(filename) + self.good_load = True + self.ResetColorizer() self.saved_change_hook() self.update_recent_files_list() diff --git a/Misc/NEWS b/Misc/NEWS index da68f262c2de..b4ba70ba78ab 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -135,6 +135,8 @@ Library IDLE ---- +- Issue #17798: Allow IDLE to edit new files when specified on command line. + - Issue #14735: Update IDLE docs to omit "Control-z on Windows". - Issue #17585: Fixed IDLE regression. Now closes when using exit() or quit().