[Geany-devel] Crash when pasting a Zero-width space

Lex Trotman elextr at xxxxx
Wed Jun 27 10:28:40 UTC 2012


On 27 June 2012 11:36, Lex Trotman <elextr at gmail.com> wrote:
> [...]
>
> And the answer from Neil is:
>
>  This feature was actually contributed by ActiveState.
>
>> We have had a report of an infinite loop in Geany when an attempt is
>> made to draw a block Caret on a zero width space character (u200b).
>
>  The backtrace makes the problem appear to be in DrawBlockCaret so
> you could switch to the standard line caret.
>
>  There are features in Scintilla that I have accepted despite
> thinking they are a poor idea, such as the block caret. Perhaps the
> people that like this feature can work on fixing it.
>
> Cheers
> Lex

But another contributor to Scintilla provided the attached patch to
prevent the infinite loop.

Drawing a block cursor over a zero width character is going to be a
tough ask though :)

Cheers
Lex
-------------- next part --------------
A non-text attachment was scrubbed...
Name: scintilla.patch
Type: application/octet-stream
Size: 836 bytes
Desc: not available
URL: <http://lists.geany.org/pipermail/devel/attachments/20120627/a7518250/attachment.obj>


More information about the Devel mailing list