#145 "Goto Matching" backwards broken

development
closed-duplicate
Eddy De Greef
Program (402)
5
2002-04-11
2002-04-11
Yury Burkatovsky
No

Hello neditors,

I am playing with nedit 5.3RC1:

% nedit -V
NEdit release of Mar 11, 2002

Built on: HP/UX, PA-RISC, GNU C
Built at: Apr 9 2002, 11:07:42
With Motif: 1002 [@(#)OSF/Motif Version 1.2.5]
Running Motif: 1002
Server: Hewlett-Packard Company 600000

The failure can be reproduced the following way:
1) Open a C source that has a large procedure in the
end that
does not fit into the text window, e.g.
nedit/source/interpret.c
from the latest Nedit source repository.
2) Go to the very end of the file.
3) Place the cursor immediately after the latest right
curly bracket.
4) Choose the Shift->Goto Matching (..) menu item or
just hit Ctrl-M.

A beep indicates that no matching curly bracket was
found.
If I place the cursor where it should go, i.e. after
the left curly bracket
that opens the body of the procedure (disasm in this
example),
"Goto Matching" brings the cursor to the right one
properly. From that moment on,
the matching brackets are recognized in both
directions, i.e.
the bug does not repeat itself.

I wish I could trace down that myself, but I am
overloaded with my work.

Regards,
Yury Burkatovsky

Discussion

  • Eddy De Greef
    Eddy De Greef
    2002-04-11

    • assigned_to: nobody --> edg
    • summary: "Goto Matching" backwards broken --> "Goto Matching" backwards broken
     
  • Eddy De Greef
    Eddy De Greef
    2002-04-11

    Logged In: YES
    user_id=73597

    > I am playing with nedit 5.3RC1:
    >
    > % nedit -V
    > NEdit release of Mar 11, 2002

    I don't think you are running 5.3RC1, but the
    HEAD branch. 5.3RC1 shows the version number.

    A similar bug was reported before (#531577),
    and I have fixed it in the BETA-5-3 branch (I hope),
    but not in the HEAD branch (it will be merged later).

    You can verify whether your executable contains
    this fix as follows:

    strings nedit | grep "Id: highlight.c"

    The file version should be at least 1.25.2.1.

    There is an HP-UX 10 binary of 5.3RC1 available
    at the web site, BTW:

    http://www.nedit.org/ftp/beta/executables

     
  • Eddy De Greef
    Eddy De Greef
    2002-04-11

    • summary: "Goto Matching" backwards broken --> "Goto Matching" backwards broken
     
  • Eddy De Greef
    Eddy De Greef
    2002-04-11

    Logged In: YES
    user_id=73597

    Correction: you may be running the BETA-5-3
    branch too, but not the most recent version
    (the bug was fixed after March 11).

     
  • Logged In: NO

    Hello,

    Yes, indeed I took the HEAD branch instead of BETA-5-3-RC. I looked
    for the bug description in the sourceforge bug reports with keywords
    "goto" and "matching", didn't find anything and decided to report
    myself. After I took the correct branch and rebuilt Nedit, the bug
    disappeared.

    The Changelog file was also taken from the HEAD branch and did not
    mention the bug and its solution.

    Sorry for the mess.

    Regards,
    Yury

     
  • Eddy De Greef
    Eddy De Greef
    2002-04-11

    • summary: "Goto Matching" backwards broken --> "Goto Matching" backwards broken
    • status: open --> closed-duplicate
     
  • Eddy De Greef
    Eddy De Greef
    2002-04-11

    Logged In: YES
    user_id=73597

    No problem. Better to report it twice than not.
    Thanks anyway.

    Closing this as a duplicate.