Kaydet (Commit) c3200b97 authored tarafından Kurt B. Kaiser's avatar Kurt B. Kaiser

1. Avoid hang when encountering a duplicate in a completion list. Bug 1571112.

2. Duplicate some old entries from Python's NEWS to IDLE's NEWS.txt

M    AutoCompleteWindow.py
M    NEWS.txt
üst 1646568b
...@@ -118,8 +118,11 @@ class AutoCompleteWindow: ...@@ -118,8 +118,11 @@ class AutoCompleteWindow:
i = 0 i = 0
while i < len(lts) and i < len(selstart) and lts[i] == selstart[i]: while i < len(lts) and i < len(selstart) and lts[i] == selstart[i]:
i += 1 i += 1
while cursel > 0 and selstart[:i] <= self.completions[cursel-1]: previous_completion = self.completions[cursel - 1]
while cursel > 0 and selstart[:i] <= previous_completion:
i += 1 i += 1
if selstart == previous_completion:
break # maybe we have a duplicate?
newstart = selstart[:i] newstart = selstart[:i]
self._change_start(newstart) self._change_start(newstart)
......
...@@ -3,9 +3,14 @@ What's New in IDLE 2.6a1? ...@@ -3,9 +3,14 @@ What's New in IDLE 2.6a1?
*Release date: XX-XXX-200X* *Release date: XX-XXX-200X*
- Avoid hang when encountering a duplicate in a completion list. Bug 1571112.
- Patch #1362975: Rework CodeContext indentation algorithm to - Patch #1362975: Rework CodeContext indentation algorithm to
avoid hard-coding pixel widths. avoid hard-coding pixel widths.
- Bug #813342: Start the IDLE subprocess with -Qnew if the parent
is started with that option.
- Some syntax errors were being caught by tokenize during the tabnanny - Some syntax errors were being caught by tokenize during the tabnanny
check, resulting in obscure error messages. Do the syntax check check, resulting in obscure error messages. Do the syntax check
first. Bug 1562716, 1562719 first. Bug 1562716, 1562719
...@@ -14,6 +19,12 @@ What's New in IDLE 2.6a1? ...@@ -14,6 +19,12 @@ What's New in IDLE 2.6a1?
the Python release of which it's a part. the Python release of which it's a part.
What's New in IDLE 1.2?
=======================
*Release date: 19-SEP-2006*
What's New in IDLE 1.2c1? What's New in IDLE 1.2c1?
========================= =========================
...@@ -44,6 +55,13 @@ What's New in IDLE 1.2b3? ...@@ -44,6 +55,13 @@ What's New in IDLE 1.2b3?
*Release date: 03-AUG-2006* *Release date: 03-AUG-2006*
- Bug #1525817: Don't truncate short lines in IDLE's tool tips.
- Bug #1517990: IDLE keybindings on MacOS X now work correctly
- Bug #1517996: IDLE now longer shows the default Tk menu when a
path browser, class browser or debugger is the frontmost window on MacOS X
- EditorWindow.test() was failing. Bug 1417598 - EditorWindow.test() was failing. Bug 1417598
- EditorWindow failed when used stand-alone if sys.ps1 not set. - EditorWindow failed when used stand-alone if sys.ps1 not set.
...@@ -80,6 +98,8 @@ What's New in IDLE 1.2a1? ...@@ -80,6 +98,8 @@ What's New in IDLE 1.2a1?
*Release date: 05-APR-2006* *Release date: 05-APR-2006*
- Patch #1162825: Support non-ASCII characters in IDLE window titles.
- Source file f.flush() after writing; trying to avoid lossage if user - Source file f.flush() after writing; trying to avoid lossage if user
kills GUI. kills GUI.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment