TAdvmemo: How to prevent caret to go beyond OEL?

Most excellent: it works.

Thank you