#94 Elipsis when folded

open
Neil Hodgson
None
3
2006-08-10
2003-08-26
Franck Marcia
No

Here is a patch I wrote from the version 1.54.

It draws a elipsis at the end of line when a block is
closed.

It uses a free value of fold.flags (32).

I will work on a better version if needed.

Best regards.

Franck Marcia.

PS: in addition to the attached patch file, add, in
Scintilla.h, #define SC_FOLDFLAG_ELIPSIS 0x0020

Discussion

<< < 1 2 (Page 2 of 2)
  • Franck Marcia
    Franck Marcia
    2003-09-02

     
    Attachments
  • Neil Hodgson
    Neil Hodgson
    2003-09-03

    Logged In: YES
    user_id=12579

    There is still a little problem with wrapping: open a file,
    collapse a function, resize until the ellipsis wraps down a line.
    Some text will probably follow the ellipsis which is OK. Now
    expand and there will be an extra blank line after the fold line.
    If you want to stop working on this we could just document
    that the ellipsis is incompatible with wrap mode.

     
  • Franck Marcia
    Franck Marcia
    2003-09-03

    Logged In: YES
    user_id=530619

    I will need too much time at this stage (and with my
    knowledge of Scintilla) to modify this kind of bugs.

    Thus, I agree with you: let's say ellipsis mode is not
    compatible with wrap mode.

    Best regards,

    Franck Marcia.

     
  • Neil Hodgson
    Neil Hodgson
    2003-09-04

    Logged In: YES
    user_id=12579

    OK. Would you be able to make a version that draws the
    ellipsis only on the last display line of a document line but
    doesn't try to wrap the ellipsis itself, just letting it clip against
    the edge of the window?

     
  • Franck Marcia
    Franck Marcia
    2003-09-04

    Logged In: YES
    user_id=530619

    In this case, I would go back to the first way I implemented
    ellipsis; then, find how to check the last subline...
    Rather, isn't there a way to suppress the blank line we talked
    about?

     
  • Neil Hodgson
    Neil Hodgson
    2003-09-04

    Logged In: YES
    user_id=12579

    Yes, I tried to modify your second patch to just do the
    drawing but then it didn't get triggered so changing the first
    patch looks easier and I'll probably do this eventually if you
    don't have time.
    I spent quite a bit of time trying to fix the blank line and
    couldn't find how but you are welcome to spend more effort
    on it - it is the right thing to do. It is just a question of
    whether it is worth the effort.

     
  • Franck Marcia
    Franck Marcia
    2003-09-05

    Logged In: YES
    user_id=530619

    Well, I already use Scite with ellipsis and, because I never
    use wrap mode, blank lines don't bother me...
    Anyway, I will look for a solution... but don't be too confident
    about the result!

     
  • Neil Hodgson
    Neil Hodgson
    2006-08-10

    • priority: 5 --> 3
     
<< < 1 2 (Page 2 of 2)