From 5b1ab247510d4f4fc566b62e8928646ebe276d49 Mon Sep 17 00:00:00 2001 From: Roger Serwy Date: Sun, 5 May 2013 11:34:21 -0500 Subject: [PATCH] #17798: Allow IDLE to edit new files when specified on command line. --- Lib/idlelib/EditorWindow.py | 2 ++ Misc/NEWS | 2 ++ 2 files changed, 4 insertions(+) diff --git a/Lib/idlelib/EditorWindow.py b/Lib/idlelib/EditorWindow.py index 343b6e42304..19bbdd60f9b 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 da68f262c2d..b4ba70ba78a 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().