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

Lex Trotman elextr at xxxxx
Tue Jun 26 10:05:23 UTC 2012


On 26 June 2012 20:01, Thomas Martitz
<thomas.martitz at student.htw-berlin.de> wrote:
> Am 26.06.2012 11:53, schrieb Harold Aling:
>
>> Updated to Geany 1.23 (git >= 40da14b)
>>
>> 1. Create a new document (ctrl-n)
>> 2. Copy/paste "mA" (already has a zero-width space in the middle)
>> 3. Press 'home'
>> 4. Press 'delete'
>> 5. Crash -> 100% CPU
>
>
> Works for me. No crash and no 100% CPU usage.
>
>
>> Geany also counts that character as 3 positions instead of 1.
>
>
> Depending on your POV, this is the correct behavior (the pos field actually
> shows the byte offset since the start of the file, hence it's 0-based also).

Yes, the column count only counts it as one though pos counts as 3.
Pos is bytes, thats a scintilla definition.

I would guess its something about the Ubuntu specials, just for comparison

08:47:15: Geany INFO		: Geany 1.23 (git >= 8187268), en_AU.UTF-8
08:47:15: Geany INFO		: GTK 2.24.10, GLib 2.30.2

 (From the help->debug messages GUI :)

Whats yours say?

Cheers
Lex

> _______________________________________________
> Geany-devel mailing list
> Geany-devel at uvena.de
> https://lists.uvena.de/cgi-bin/mailman/listinfo/geany-devel



More information about the Devel mailing list