SynEdit behaviour when ctrl-y deleting lines (feature) [SynEdit crashes when pressing Ctrl+Y on last line]
Original Reporter info from Mantis: Bart @flyingsheep
-
Reporter name: Bart Broersma
Original Reporter info from Mantis: Bart @flyingsheep
- Reporter name: Bart Broersma
Description:
When in a synedit, goto the last line.
Press Ctrl+Y (delete line).
The first two times this goes OK, but after the second time, the cursor stays below the last line, and pressing Ctrl+Y again crashes the app.
Only tested onWindows yet.
Steps to reproduce:
Run attached sample program and do as described before.
Additional information:
Stacktrace after the crash.
C:\Users\Bart\LazarusProjecten\bugs\SynEdit>se
TApplication.HandleException Invalid stringlist index 95
Stack trace:
$00562750 line 447 of synedittextbuffer.pp
$00563AB5 line 872 of synedittextbuffer.pp
$00564309 line 1024 of synedittextbuffer.pp
$00564950 line 1084 of synedittextbuffer.pp
$0054D501 line 1047 of synedittexttrimmer.pas
$00547B14 line 1065 of synedittextbase.pas
$00547B14 line 1065 of synedittextbase.pas
$0052E943 line 6403 of synedit.pp
$0052D5E4 line 6118 of synedit.pp
$00523A54 line 2434 of synedit.pp
$004DB736 line 5485 of include/wincontrol.inc
$004DB9B4 line 5654 of include/wincontrol.inc
$004DDD19 line 6941 of include/wincontrol.inc
$0040ADBA
$004DAED2 line 5243 of include/wincontrol.inc
$0052C376 line 5711 of synedit.pp
$0051B231 line 111 of lclmessageglue.pas
Mantis conversion info:
- Mantis ID: 20299
- OS: Windows
- OS Build: Win7 64 bit
- Build: r32422
- Platform: i386
- Version: 0.9.31 (SVN)
- Fixed in version: 0.9.31 (SVN)
- Fixed in revision: 32424 (#4687ef5c)
- Target version: 1.2.0
- LazTarget: 0.99.0