[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:
Benoît Minisini 2013-11-08 01:08:25 +00:00
parent 756f7a206c
commit eaf06a6411

View file

@ -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