mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 19:48:20 +02:00
Improved override method insertion in autocomplete
This commit is contained in:
parent
0ac49db97e
commit
d18e12866b
2 changed files with 8 additions and 1 deletions
|
@ -2627,6 +2627,13 @@ void BfAutoComplete::CheckMethod(BfMethodDeclaration* methodDeclaration, bool is
|
|||
{
|
||||
mInsertStartIdx = methodDeclaration->GetSrcStart();
|
||||
mInsertEndIdx = methodDeclaration->GetSrcEnd();
|
||||
if (methodDeclaration->mBody != NULL)
|
||||
{
|
||||
if (methodDeclaration->mBody->mTriviaStart != -1)
|
||||
mInsertEndIdx = methodDeclaration->mBody->mTriviaStart;
|
||||
else
|
||||
mInsertEndIdx = methodDeclaration->mBody->GetSrcStart();
|
||||
}
|
||||
}
|
||||
|
||||
String filter;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue