#17798: merge with 3.3.
diff --git a/Lib/idlelib/EditorWindow.py b/Lib/idlelib/EditorWindow.py
index ac5e069..52dfb3d 100644
--- a/Lib/idlelib/EditorWindow.py
+++ b/Lib/idlelib/EditorWindow.py
@@ -321,6 +321,8 @@
                         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 ab268c8..70e8f21 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -249,6 +249,8 @@
 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".