#3486 Open file via hyper search overrides result line

closed-fixed
5
2011-01-15
2010-12-11
Wormbo
No

If you open a file by clicking on a Hyper search result and jEdit previously remembered a cusror position for that file, it will jump to that position instead of the search result at first. Only if the file is already open or jEdit didn't remember any cursor position for it (e.g. because it is opened for the first time ever), clicking on a Hyper Search result jumps to the correct position.

I guess the code that restores a previously remembered cursor position kicks in too late. There are no errors or exceptions when this happens.

Steps to repeat:
- Open a file and use Hyper Search to look up some word in the file.
- Click on a line in the file that doesn't contain the search result.
- Close the file.
- Click on a Hyper Search result to open the file again. Notice how the cursor ends up where it was when you closed the file.
- Click on the Hyper Search result again. Now it actually selects the correct part of the file.

Discussion

    • milestone: --> Regressive (new to devel)
     
  • Confirmed that this happens with jEdit trunk and 4.4.x (r19175), but
    doesn't happen with 4.3.x, all on JDK 6u23 on Windows XP.

    Marked as regressive.

     
    • assigned_to: nobody --> k_satoda
    • status: open --> closed-fixed