anchor.diff:    if DoPyEvent(Ed, cEventOnComplete, [])=cPyTrue then exit;
   
     if F.Lexer=nil then exit;
  -  if Ed.Carets.Count<>1 then exit;
  -
  -  LexName:= F.LexerNameAtPos(Point(Ed.Carets[0].PosX, Ed.Carets[0].PosY));
  -  MsgStatus(msgStatusTryingAutocomplete+' '+LexName);
  +
  +  Caret:= Ed.Carets[0];
  +  LexName:= F.LexerNameAtPos(Point(Caret.PosX, Caret.PosY));
     if LexName='' then exit;
   
     //'php_'->'php'
  
positive.code:   LexName: string;
    IsPascal, IsCss, IsHtml, IsCaseSens: boolean;
    FileHtml, FileCss, FileAcp: string;
  begin
    F:= CurrentFrame;
    Ed:= CurrentEditor;
  
negative.code:   FileCss:= GetAppPath(cDirDataAutocompleteSpec)+DirectorySeparator+'css_list.ini';
    FileHtml:= GetAppPath(cDirDataAutocompleteSpec)+DirectorySeparator+'html_list.ini';
    FileAcp:= GetAppPath(cDirDataAutocomplete)+DirectorySeparator+LexName+'.acp';
  
    //allow autocompletion with carets, only in HTML
    if Ed.Carets.Count>1 then
      if not IsHtml then exit;
    MsgStatus(msgStatusTryingAutocomplete+' '+LexName);
  
    if IsHtml then
    begin
  