]> granicus.if.org Git - python/commitdiff
#17798: Allow IDLE to edit new files when specified on command line.
authorRoger Serwy <roger.serwy@gmail.com>
Sun, 5 May 2013 16:34:21 +0000 (11:34 -0500)
committerRoger Serwy <roger.serwy@gmail.com>
Sun, 5 May 2013 16:34:21 +0000 (11:34 -0500)
Lib/idlelib/EditorWindow.py
Misc/NEWS

index 343b6e4230496294aa6e27f809b9980e8abaf507..19bbdd60f9be668ccc8eaa30068dc49a8a949a70 100644 (file)
@@ -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()
index da68f262c2de818e501802fa3cb34a5e43300f2d..b4ba70ba78abd84d27d03a4dae99e3eede12153f 100644 (file)
--- 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().