On Fri, Oct 24, 2008 at 2:11 PM, Pieter <[EMAIL PROTECTED]> wrote:
> So in C++, your setPosition() just changes a local copy of the text
> cursor. Can that be the cause of the problem?
Yes! The following works:
cursor = w.textCursor()
cursor.setPosition(i)
w.setTextCursor(cursor)
Many thanks for this.
There is still one more problem: inserting a newline eats the
character to the right. of the insertion point. This is probably an
artifact of Leo's insert-newline code...
Edward
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"leo-editor" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/leo-editor?hl=en
-~----------~----~----~----~------~----~------~--~---