Menu

#2595 caret/display position w/ multiple views open

normal bug
closed
5
2006-08-14
2006-08-02
Matt
No

Version 4.3pre5, seen on Windows as well as FreeBSD, JDK1.5

If I have 2 views open and both have the same file
active(eg foo.txt, line 20 in view 1, line 50 in view
2), then I switch to a different buffer in one of the
views (switch view 1 to bar.txt), when that view
switches back to foo.txt, it's caret/display placement
is the same as the other view (ie, before switching to
bar.txt, the caret was on line 20, now it is on line
50, where the other view is located as well.)

Discussion

  • Matthieu Casanova

    Logged In: YES
    user_id=285591

    Hi, this can be reproduced with split view :
    1. Open two files
    2. split the view to see the same buffer in both side
    3. move the caret to different positions in each side
    4. switch to the other buffer in both textarea
    5. switch back to the first buffer in both areas
    The caret will be at the same place on both buffers.

    The reason is that the caret position is saved in Buffer
    properties, maybe it should be in JEditTextArea properties

     
  • Dale Anson

    Dale Anson - 2006-08-14
    • assigned_to: nobody --> daleanson
     
  • Dale Anson

    Dale Anson - 2006-08-14
    • status: open --> closed
     
  • Dale Anson

    Dale Anson - 2006-08-14

    Logged In: YES
    user_id=187628

    Fixed.

    I was never able to actually reproduce the original case of
    having 2 separate views open, but did see the problem
    mentioned in the follow-up post about how to reproduce in a
    split view. Caret positions are now set correctly, as are
    selections, and horizontal and vertical positions.

     

Log in to post a comment.