Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#532 cursor hangup with continuous wrap

release
open-accepted
Program (402)
5
2008-01-04
2006-07-19
Anonymous
No

I typed in following 3 lines:
-------- cut here --------
1>******************
2>******************ab
3>
-------- cut here --------
then:
1. resize window, so the last two characters 'ab'
of line 2 were wraped to the next line by
continuous wrap
2. go to line 1, type key <End>, for end of line
3. scroll to end of file with <cursor down>
4. scroll up with <cursor up>

i got a cursor hangup on the wraped part of line 2

for reproducing the bug i found it is important that
- line 1 needs exactly the size just before line wrap.
- there may by other lines between line 1 and 2

cheers
Jörg

Discussion

1 2 > >> (Page 1 of 2)
  • Thorsten Haude
    Thorsten Haude
    2006-08-11

    Logged In: YES
    user_id=119143

    Confirmed with:
    Enhanced NEdit 5.5
    Nov 24, 2005

    Built on: Linux, 486, GNU C
    Built at: Jan 2 2006, 20:46:10
    With Motif: 2.2.3 [@(#)Motif Version 2.2.3]
    Running Motif: 2.2 [@(#)Motif Version 2.2.3]
    Server: The XFree86 Project, Inc 40399902
    Visual: 16-bit TrueColor (ID 0x22, Default)
    Locale: de_DE

    (Is that you, Jörg? Did you just forgot to login?)

     
  • Thorsten Haude
    Thorsten Haude
    2006-08-11

    • assigned_to: nobody --> yooden
     
  • Thorsten Haude
    Thorsten Haude
    2006-09-03

    • labels: --> Program
    • milestone: --> release
    • status: open --> open-accepted
     
  • Thorsten Haude
    Thorsten Haude
    2006-09-03

    Logged In: YES
    user_id=119143

    Found it. The caret movement you would expect is not
    possible (but attempted, hence the hangup) because the caret
    cannot be placed on the last position of a cont-wrapped
    line. At the moment I don't see a fix that would keep caret
    movement consistent for all cases.

    (Confirmed for 5.1.1.)

     
  • Thorsten Haude
    Thorsten Haude
    2006-09-05

    Logged In: YES
    user_id=119143

    I implemented a solution I saw in Kate and Scite: On
    cont-wrapped lines, the caret is put in the last but one
    position, retaining the preferred column. The current patch
    is buggy on some fringe cases (eg. two-column windows), so I
    will have another look.

     
  • Thorsten Haude
    Thorsten Haude
    2006-09-30

    • priority: 5 --> 9
     
  • Thorsten Haude
    Thorsten Haude
    2006-10-08

    Added consts, changed a few parameter types

     
  • Thorsten Haude
    Thorsten Haude
    2006-12-03

    const and types are in CVS now

     
  • Joerg Fischer
    Joerg Fischer
    2007-10-02

    Logged In: YES
    user_id=918104
    Originator: NO

    I can't follow Kate or Scite. There is no problem in showing the cursor at the start of the next line in case of a non-whitespace wrap. We only have to be consistent and notice that in this case the next and previous lines are different, otherwise Down jumps actually 2 lines down, while Up stays at the same line as reported. I can't attache the simple fix here unfortunately so I submit it to the develop list.

     
1 2 > >> (Page 1 of 2)