I think I found a bug in TAdvMemo marker.
When a marker is set for a line in AdvMemo, if you paste a new line above this, AdvMemo incorrectly process and update the current marker. It still keeps the marker at the old line index and doesn't move it to the new line index and account for the new added line above.
Example, it line 10 has a marker. If I insert (by paste a new line content not by press enter key) a line at line 5. The line 10 now becomes line 11 and it should still have the marker. But instead, AdvMemo now unset marker at line 11 and set the marker at line 10.
Could you please check and fix it.