Message270898
| Author |
terry.reedy |
| Recipients |
Tom F, roger.serwy, terry.reedy |
| Date |
2016年07月21日.00:58:37 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1469062717.7.0.279275204936.issue16198@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
It is intentional that <modifier> <tab> be treated as a normal tab. The autocomplete_event tab handler begins with
if hasattr(event, "mc_state") and event.mc_state:
# A modifier was pressed along with the tab, continue as usual.
return
To fix the problem with tabs at the beginning of a line within multiline strings, I am adding to the condition a clause to catch tabs at the beginning of lines, whether within a multiline string or not.
or not self.text.get("insert linestart", "insert").strip()
Tests still pass with this addition. I need to add a test that fails without it.
I think a tab should bring up completion box even immediately after an opening quote, as in
open('<tab>
Typing a letter fails to open a box if there is only one completion, so that is not a foolproof way to get a box with all choices. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2016年07月21日 00:58:37 | terry.reedy | set | recipients:
+ terry.reedy, roger.serwy, Tom F |
| 2016年07月21日 00:58:37 | terry.reedy | set | messageid: <1469062717.7.0.279275204936.issue16198@psf.upfronthosting.co.za> |
| 2016年07月21日 00:58:37 | terry.reedy | link | issue16198 messages |
| 2016年07月21日 00:58:37 | terry.reedy | create |
|