Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
1bf4c2d2
Kaydet (Commit)
1bf4c2d2
authored
Tem 21, 2002
tarafından
Kurt B. Kaiser
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Bug: clearing the shell undo list after a prompt was allowing files to be
opened on top of the shell instead of in a new window.
üst
d69030db
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
5 deletions
+11
-5
IOBinding.py
Lib/idlelib/IOBinding.py
+11
-5
No files found.
Lib/idlelib/IOBinding.py
Dosyayı görüntüle @
1bf4c2d2
...
@@ -87,17 +87,23 @@ class IOBinding:
...
@@ -87,17 +87,23 @@ class IOBinding:
else
:
else
:
filename
=
editFile
filename
=
editFile
if
filename
:
if
filename
:
# if the current window has no filename and hasn't been
# If the current window has no filename and hasn't been
# modified, we replace it's contents (no loss). Otherwise
# modified, we replace its contents (no loss). Otherwise
# we open a new window.
# we open a new window. But we won't replace the
if
not
self
.
filename
and
self
.
get_saved
():
# shell window (which has an interp(reter) attribute), which
# gets set to "not modified" at every new prompt.
try
:
interp
=
self
.
editwin
.
interp
except
:
interp
=
None
if
not
self
.
filename
and
self
.
get_saved
()
and
not
interp
:
self
.
editwin
.
flist
.
open
(
filename
,
self
.
loadfile
)
self
.
editwin
.
flist
.
open
(
filename
,
self
.
loadfile
)
else
:
else
:
self
.
editwin
.
flist
.
open
(
filename
)
self
.
editwin
.
flist
.
open
(
filename
)
else
:
else
:
self
.
text
.
focus_set
()
self
.
text
.
focus_set
()
return
"break"
return
"break"
#
# Code for use outside IDLE:
# Code for use outside IDLE:
if
self
.
get_saved
():
if
self
.
get_saved
():
reply
=
self
.
maybesave
()
reply
=
self
.
maybesave
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment