On Thursday, August 21, 2014 2:04:12 PM UTC-5, Edward K. Ream wrote:

> LeoQTextEditWidget.setSelectionRangeHelper doesn't allow an insert point 
to be different from one of the two end points of the selection.  As a 
result, visual-insert mode doesn't give the same feedback as in vim 
itself.  I'm working on it.

Well, it appears that QTextCursor requires that the insertion point be at 
one of the two end points of the selection range.

True, QTextCursor does appear to support "complex" (disjoint) selections, 
but that model doesn't fit with Leo's model for text widgets.  So it 
appears that what we have is the best can be done.

That's too bad, because vim itself allows the cursor to move along a line 
in response, say, to t commands, even though the entire line remains 
selected.  For now, though, Visual Line mode appears to work well enough...

Edward

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.

Reply via email to