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

#613 $top_line in continuous wrapping

open
nobody
None
5
2008-01-18
2008-01-18
Joerg Fischer
No

This isn't meant for the new release.

In continuous wrapping, instead of using the absolute line number the *displayed* line number count (eg, a single real line wrapped visually into several lines) goes into $top_line. I think this is the wrong idea, because the visual lines don't have numbers, actually. The line numbers shown in the gutter and in the statistics line are all the real line numbers.

Discussion

  • Tony Balinski
    Tony Balinski
    2008-01-18

    Logged In: YES
    user_id=618141
    Originator: NO

    It might be a good idea to have a position for the first character on that line, eg $top_left - doing set_cursor_pos($top_left) would put your cursor at the top left corner of the window. (Funny things may happen if there's an autoscrolling region in effect.)

     
  • Joerg Fischer
    Joerg Fischer
    2008-01-23

    Logged In: YES
    user_id=918104
    Originator: YES

    Well, I could solve my problem with
    set_wrap_text("none")
    topLine = $top_line
    set_wrap_mode("continuous")
    although this changes the display. (I just needed a anchor point near the top line displayed.) So, yes, $top_left would be nice in general and isn't hard to get. In any case, the documentation should mention that $top_line isn't the absolute number for the top line.