IDE: auto start completion only in pascal

git-svn-id: trunk@42804 -
This commit is contained in:
mattias 2013-09-15 12:31:25 +00:00
parent 487deb802a
commit 80b7afb789

View File

@ -10180,6 +10180,9 @@ procedure TSourceEditorManager.OnSourceCompletionTimer(Sender: TObject);
Result := false;
SrcEdit := ActiveEditor;
if SrcEdit = nil then exit;
if not (SrcEdit.FEditor.Highlighter is TSynPasSyn) then
exit; // only start completion automatically for pascal sources
Line := SrcEdit.FEditor.LineText;
LogCaret := SrcEdit.FEditor.LogicalCaretXY;
//DebugLn(['CheckStartIdentCompletion Line="',Line,'" LogCaret=',dbgs(LogCaret)]);