Skip to content

Commit 5674564

Browse files
committed
Fixed some bugs
1 parent 87da3f8 commit 5674564

18 files changed

+15
-10
lines changed

foxref.PJT

-462 Bytes
Binary file not shown.

foxref.PJX

0 Bytes
Binary file not shown.

foxref.app

41 Bytes
Binary file not shown.

foxref.vct

0 Bytes
Binary file not shown.

foxref_ref.CDX

1 KB
Binary file not shown.

foxref_ref.DBF

3.69 KB
Binary file not shown.

foxref_ref.FPT

1.81 KB
Binary file not shown.

foxrefengine.prg

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2910,8 +2910,8 @@ DEFINE CLASS FoxRef AS Session
29102910
* see if we're positioned on a #include, SET PROCEDURE TO line
29112911

29122912
IF VARTYPE(m.nLineNo) == 'N' AND m.nLineNo > 0
2913-
*ZAP@241119
2914-
IF INLIST(ALLTRIM(m.pcSymbol), "IF", "ELSE", "ENDIF")
2913+
*ZAP@241120
2914+
IF INLIST(ALLTRIM(m.pcSymbol,0,CHR(32),CHR(9)), "IF", "ELSE", "ENDIF")
29152915
SELECT ;
29162916
DefTable.UniqueID, ;
29172917
DefTable.FileID, ;

foxrefexport.sct

0 Bytes
Binary file not shown.

foxreffind.sct

0 Bytes
Binary file not shown.

foxrefgotodef.sct

0 Bytes
Binary file not shown.

foxrefoptions.sct

0 Bytes
Binary file not shown.

foxrefprint.sct

0 Bytes
Binary file not shown.

foxrefreplace.sct

0 Bytes
Binary file not shown.

foxrefreplaceconfirm.sct

0 Bytes
Binary file not shown.

foxrefresults.sct

0 Bytes
Binary file not shown.

foxrefsearch.prg

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1421,19 +1421,20 @@ DEFINE CLASS RefSearch AS Custom
14211421
m.nLineCnt = MEMLINES(m.cTextBlock)
14221422
_MLINE = 0
14231423
ENDIF
1424-
14251424

14261425
*ZAP@241119
14271426
LOCAL lcMargin, llAdd, m.lnMargin
14281427
m.lcMargin = ""
1429-
IF INLIST(ALLTRIM(m.pcSymbol), "IF", "ELSE", "ENDIF") AND EMPTY(m.cProcName)
1430-
m.cProcName = JUSTSTEM(m.pcFileNAme)
1431-
ENDIF
1428+
14321429
FOR m.i = 1 TO m.nLineCnt
1433-
*ZAP@241120 Wrong LineNo
1434-
IF m.i = 1480 AND m.cProcName = "foxrefsearch"
1435-
SET STEP ON
1430+
*ZAP@241120
1431+
IF EMPTY(m.cProcName) AND INLIST(ALLTRIM(m.pcSymbol,0,CHR(32),CHR(9)), "IF", "ELSE", "ENDIF")
1432+
m.cProcName = JUSTSTEM(m.pcFileNAme)
14361433
ENDIF
1434+
*ZAP@241120 Wrong LineNo
1435+
*!* IF m.i = 134 &&1480 &&AND m.cProcName = "foxrefsearch"
1436+
*!* SET STEP ON
1437+
*!* ENDIF
14371438
IF m.lUseMemLines
14381439
m.cCodeLine = MLINE(m.cTextBlock, 1, _MLINE)
14391440
ELSE

foxrefstart.prg

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ DEFINE CLASS CFoxRefStart AS Session
7171

7272
*ZAP@241119
7373
PRIVATE m.pcSymbol, m.pcFilename
74-
m.pcSymbol = UPPER(m.cSymbol) && ZAP@241120 add UPPER
74+
m.pcSymbol = UPPER(LTRIM(m.cSymbol,0,CHR(32),CHR(9))) && ZAP@241120 add UPPER
7575
m.pcFilename = m.cFilename
7676
m.pnLineNo = m.nLineNo
7777

@@ -143,6 +143,10 @@ DEFINE CLASS CFoxRefStart AS Session
143143

144144
CASE m.nMode == MODE_GOTODEF
145145
IF !EMPTY(m.cSelectedText)
146+
*ZAP@241120
147+
IF EMPTY(m.pcSymbol)
148+
m.pcSymbol = UPPER(LTRIM(m.cSelectedText,0,CHR(32),CHR(9)))
149+
ENDIF
146150
m.cSymbol = m.cSelectedText
147151
ENDIF
148152

0 commit comments

Comments
 (0)