Ticket #777 (closed defect: fixed)
Method Auto Complete doesn't work when lines between cursor and EOF
| Reported by: | waxhead | Owned by: | waxhead |
|---|---|---|---|
| Priority: | minor | Milestone: | |
| Component: | editor | Version: | 0.50 |
| Keywords: | method autocomplete | Cc: | waxhead |
Description
When method autocomplete is on and the editor has lines before the EOF, the pos and last wasn't being calculated correctly, so when the condtion:
if ($config->autocomplete_method
and ( ( $key < 48 )
or ( ( $key > 57 ) and ( $key < 65 ) )
or ( ( $key > 90 ) and ( $key < 95 ) )
or ( $key == 96 )
or ( $key > 122 ) )
and ( $pos == $last )
)
was checked, $pos != $last.
This is fixed by calling:
my $last = $editor->GetLineEndPosition?($line);
Can you just confirm for me that this is the case( that method autocomplete isn't working for not just me ) and let me know and assign this back to me.
I have a fix in place, but a lot of debugging code that needs to come out before committing to trunk.
Change History
comment:1 Changed 3 years ago by Sewi
- Owner changed from Sewi to waxhead
- Status changed from new to assigned
comment:2 Changed 3 years ago by waxhead
- Status changed from assigned to closed
- Resolution set to fixed
Committed http://padre.perlide.org/trac/changeset/9431 to fix this.

I noticed that it has been broken somewhere between r9228 and r9356.
It doesn't work for me on any OS, feel free to fix it.