Skip to content
This repository was archived by the owner on Sep 11, 2023. It is now read-only.

Commit e82a87e

Browse files
committed
fixed writing dot crashing the program
1 parent 4b087cd commit e82a87e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

UI/Components/EditorElement/EditorElementIntellisenseController.cs

+4
Original file line numberDiff line numberDiff line change
@@ -507,6 +507,10 @@ bool ComputeAutoComplete(string text, int lineOffset, int quoteCount)
507507

508508
if (acType == ACType.Class)
509509
{
510+
if (classOffset < 0)
511+
{
512+
return false;
513+
}
510514
int len = 0;
511515
for (var i = classOffset; i >= 0; --i)
512516
{

0 commit comments

Comments
 (0)