[Geany-devel] Crash when pasting a Zero-width space
Thomas Martitz
thomas.martitz at xxxxx
Tue Jun 26 10:01:53 UTC 2012
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).
More information about the Devel
mailing list