On Wed, Jan 27, 2010 at 2:20 PM, Terry Brown <[email protected]> wrote:

>> There are times, as you move through the text with the cursor keys, where 
>> the position(), as reported by qt, jumps by 2 instead of 1 (the combining 
>> characters I mentioned earlier).

That appears to be a separate issue, and a separate bug.  Last year I
reported a similar but with scintilla, and the qt people were quick to
fix it.

It cannot be correct for the behavior to be as you describe.  The
clients of PyQt/Qt have no access to the underlying mechanics of
unicode *characters*.  Returning a bytes index instead of a character
index has to be wrong in all situations.

But it's so easy to do by mistake :-)  Indeed, I'm surprised that text
widgets ever work!  They are, by far, the most complex widgets in any
tool set.

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.

Reply via email to