Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
fa7d3b13
Commit
fa7d3b13
authored
Sep 11, 2013
by
Serhiy Storchaka
Browse files
Options
Browse Files
Download
Plain Diff
Issue #18988: The "Tab" key now works when a word is already autocompleted.
parents
f2762321
dd4754e6
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
7 deletions
+10
-7
Lib/idlelib/AutoComplete.py
Lib/idlelib/AutoComplete.py
+3
-6
Lib/idlelib/AutoCompleteWindow.py
Lib/idlelib/AutoCompleteWindow.py
+2
-1
Misc/NEWS
Misc/NEWS
+5
-0
No files found.
Lib/idlelib/AutoComplete.py
View file @
fa7d3b13
...
...
@@ -160,12 +160,9 @@ class AutoComplete:
if
not
comp_lists
[
0
]:
return
self
.
autocompletewindow
=
self
.
_make_autocomplete_window
()
self
.
autocompletewindow
.
show_window
(
comp_lists
,
"insert-%dc"
%
len
(
comp_start
),
complete
,
mode
,
userWantsWin
)
return
True
return
not
self
.
autocompletewindow
.
show_window
(
comp_lists
,
"insert-%dc"
%
len
(
comp_start
),
complete
,
mode
,
userWantsWin
)
def
fetch_completions
(
self
,
what
,
mode
):
"""Return a pair of lists of completions for something. The first list
...
...
Lib/idlelib/AutoCompleteWindow.py
View file @
fa7d3b13
...
...
@@ -157,13 +157,14 @@ class AutoCompleteWindow:
self
.
start
=
self
.
widget
.
get
(
self
.
startindex
,
"insert"
)
if
complete
:
completed
=
self
.
_complete_string
(
self
.
start
)
start
=
self
.
start
self
.
_change_start
(
completed
)
i
=
self
.
_binary_search
(
completed
)
if
self
.
completions
[
i
]
==
completed
and
\
(
i
==
len
(
self
.
completions
)
-
1
or
self
.
completions
[
i
+
1
][:
len
(
completed
)]
!=
completed
):
# There is exactly one matching completion
return
return
completed
==
start
self
.
userwantswindow
=
userWantsWin
self
.
lasttypedstart
=
self
.
start
...
...
Misc/NEWS
View file @
fa7d3b13
...
...
@@ -21,6 +21,11 @@ Tests
test
.
support
was
converted
to
a
package
.
Regression
noticed
by
Zachary
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?
===================================
...
...
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