Opened 10 years ago

Closed 10 years ago

#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


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 (2)

comment:1 Changed 10 years ago by Sewi

  • Owner changed from Sewi to waxhead
  • Status changed from new to assigned

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.

comment:2 Changed 10 years ago by waxhead

  • Resolution set to fixed
  • Status changed from assigned to closed
Note: See TracTickets for help on using tickets.