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
fa7d3b13
Kaydet (Commit)
fa7d3b13
authored
Eyl 11, 2013
tarafından
Serhiy Storchaka
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Sade Fark
Issue #18988: The "Tab" key now works when a word is already autocompleted.
üst
f2762321
dd4754e6
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
7 deletions
+10
-7
AutoComplete.py
Lib/idlelib/AutoComplete.py
+3
-6
AutoCompleteWindow.py
Lib/idlelib/AutoCompleteWindow.py
+2
-1
NEWS
Misc/NEWS
+5
-0
No files found.
Lib/idlelib/AutoComplete.py
Dosyayı görüntüle @
fa7d3b13
...
@@ -160,12 +160,9 @@ class AutoComplete:
...
@@ -160,12 +160,9 @@ class AutoComplete:
if
not
comp_lists
[
0
]:
if
not
comp_lists
[
0
]:
return
return
self
.
autocompletewindow
=
self
.
_make_autocomplete_window
()
self
.
autocompletewindow
=
self
.
_make_autocomplete_window
()
self
.
autocompletewindow
.
show_window
(
comp_lists
,
return
not
self
.
autocompletewindow
.
show_window
(
"insert-
%
dc"
%
len
(
comp_start
),
comp_lists
,
"insert-
%
dc"
%
len
(
comp_start
),
complete
,
complete
,
mode
,
userWantsWin
)
mode
,
userWantsWin
)
return
True
def
fetch_completions
(
self
,
what
,
mode
):
def
fetch_completions
(
self
,
what
,
mode
):
"""Return a pair of lists of completions for something. The first list
"""Return a pair of lists of completions for something. The first list
...
...
Lib/idlelib/AutoCompleteWindow.py
Dosyayı görüntüle @
fa7d3b13
...
@@ -157,13 +157,14 @@ class AutoCompleteWindow:
...
@@ -157,13 +157,14 @@ class AutoCompleteWindow:
self
.
start
=
self
.
widget
.
get
(
self
.
startindex
,
"insert"
)
self
.
start
=
self
.
widget
.
get
(
self
.
startindex
,
"insert"
)
if
complete
:
if
complete
:
completed
=
self
.
_complete_string
(
self
.
start
)
completed
=
self
.
_complete_string
(
self
.
start
)
start
=
self
.
start
self
.
_change_start
(
completed
)
self
.
_change_start
(
completed
)
i
=
self
.
_binary_search
(
completed
)
i
=
self
.
_binary_search
(
completed
)
if
self
.
completions
[
i
]
==
completed
and
\
if
self
.
completions
[
i
]
==
completed
and
\
(
i
==
len
(
self
.
completions
)
-
1
or
(
i
==
len
(
self
.
completions
)
-
1
or
self
.
completions
[
i
+
1
][:
len
(
completed
)]
!=
completed
):
self
.
completions
[
i
+
1
][:
len
(
completed
)]
!=
completed
):
# There is exactly one matching completion
# There is exactly one matching completion
return
return
completed
==
start
self
.
userwantswindow
=
userWantsWin
self
.
userwantswindow
=
userWantsWin
self
.
lasttypedstart
=
self
.
start
self
.
lasttypedstart
=
self
.
start
...
...
Misc/NEWS
Dosyayı görüntüle @
fa7d3b13
...
@@ -21,6 +21,11 @@ Tests
...
@@ -21,6 +21,11 @@ Tests
test
.
support
was
converted
to
a
package
.
Regression
noticed
by
Zachary
test
.
support
was
converted
to
a
package
.
Regression
noticed
by
Zachary
Ware
.
Ware
.
IDLE
----
-
Issue
#
18988
:
The
"Tab"
key
now
works
when
a
word
is
already
autocompleted
.
What
's New in Python 3.4.0 Alpha 2?
What
's New in Python 3.4.0 Alpha 2?
===================================
===================================
...
...
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