Enable hiding additional carets

3 views
Skip to first unread message

Florian Balmer

unread,
Sep 5, 2009, 8:56:50 AM9/5/09
to scintilla-interest
Hello Scintillas

I'm posting a patch (directly to Neil) to add a new command message to
determine whether additional carets should be displayed or not (keep
the default as is).

The background is that I prefer to see only a single caret in
rectangular selection mode, if typing into additional selections has
been disabled. I hope this is of general interest and can go into
Scintilla.

--Florian

Neil Hodgson

unread,
Sep 10, 2009, 9:02:11 AM9/10/09
to scintilla...@googlegroups.com
Florian Balmer:

> I'm posting a patch (directly to Neil) to add a new command message to
> determine whether additional carets should be displayed or not (keep
> the default as is).

The expression being changed is quite complex already. I think the
modification will fail to draw the drag caret except when the first
selection is the main selection.

Neil

Florian Balmer

unread,
Sep 10, 2009, 11:35:54 AM9/10/09
to scintilla-interest
Neil Hodgson:
>    The expression being changed is quite complex already. I think the
> modification will fail to draw the drag caret except when the first
> selection is the main selection.

Thanks for pointing out this issue, I didn't think of testing that!
I'm sending your a revised patch, which should work as expected with
drag carets.

--Florian

Neil Hodgson

unread,
Oct 16, 2009, 5:38:58 AM10/16/09
to scintilla...@googlegroups.com
Florian Balmer:

> I'm posting a patch (directly to Neil) to add a new command message to
> determine whether additional carets should be displayed or not (keep
> the default as is).

This has now been committed. The message is SCI_SETADDITIONALCARETSVISIBLE.

Neil

Reply all
Reply to author
Forward
0 new messages