[DEVELOPMENT ENVIRONMENT]
* BUG: Correctly display optional values in signatures. git-svn-id: svn://localhost/gambas/trunk@5947 867c0c6c-44f3-4631-809d-bfa615b0a4ec
This commit is contained in:
parent
756f7a206c
commit
eaf06a6411
1 changed files with 4 additions and 1 deletions
|
@ -302,7 +302,7 @@ Private Sub MakeSignature(sSign As String) As String
|
|||
iInd += 2
|
||||
sDefault = ""
|
||||
iPos = Highlight.Positions[iInd]
|
||||
While iInd < aSym.Max
|
||||
While iInd <= aSym.Max
|
||||
sSym = aSym[iInd]
|
||||
If sSym = "(" Then
|
||||
aWait.Push(")")
|
||||
|
@ -318,6 +318,9 @@ Private Sub MakeSignature(sSign As String) As String
|
|||
sDefault = Trim(Mid$(sSign, iPos + 1, iPos2 - iPos))
|
||||
Dec iInd
|
||||
Break
|
||||
Else If iInd = aSym.Max Then
|
||||
sDefault = Trim(Mid$(sSign, iPos + 1))
|
||||
Break
|
||||
Endif
|
||||
Endif
|
||||
Inc iInd
|
||||
|
|
Loading…
Reference in a new issue